Struct winsafe::gui::spec::HeaderItems
source · pub struct HeaderItems<'a> { /* private fields */ }
Available on crate feature
gui
only.Expand description
Exposes the item methods of a Header
control.
You cannot directly instantiate this object, it is created internally by the control.
Implementations§
source§impl<'a> HeaderItems<'a>
impl<'a> HeaderItems<'a>
sourcepub fn count(&self) -> u32
pub fn count(&self) -> u32
Retrieves the total number of items by sending a
hdm::GetItemCount
message.
sourcepub const fn get(&self, index: u32) -> HeaderItem<'a>
pub const fn get(&self, index: u32) -> HeaderItem<'a>
Retrieves the item at the given zero-based position.
Note: This method is cheap – even if index
is beyond the range of
existing items, an object will still be returned. However, operations
upon this object will produce no effect.
sourcepub fn iter(&self) -> impl Iterator<Item = HeaderItem<'a>> + 'a
pub fn iter(&self) -> impl Iterator<Item = HeaderItem<'a>> + 'a
Returns an iterator over all items.
Auto Trait Implementations§
impl<'a> Freeze for HeaderItems<'a>
impl<'a> !RefUnwindSafe for HeaderItems<'a>
impl<'a> !Send for HeaderItems<'a>
impl<'a> !Sync for HeaderItems<'a>
impl<'a> Unpin for HeaderItems<'a>
impl<'a> !UnwindSafe for HeaderItems<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more