pub struct EntryData { /* private fields */ }Expand description
Entry data storage
Implementations§
Source§impl EntryData
impl EntryData
Sourcepub fn new(entries: Vec<AliasEntry>) -> Self
pub fn new(entries: Vec<AliasEntry>) -> Self
Create a new EntryData instance with the given entries
Sourcepub fn entries(&self) -> &[AliasEntry]
pub fn entries(&self) -> &[AliasEntry]
Get reference to all entries
Sourcepub fn visible_indices(&self) -> &[usize]
pub fn visible_indices(&self) -> &[usize]
Get reference to visible indices
Sourcepub fn get_visible_entry(&self, selected_index: usize) -> Option<&AliasEntry>
pub fn get_visible_entry(&self, selected_index: usize) -> Option<&AliasEntry>
Get the entry at the given visible index
Sourcepub fn visible_count(&self) -> usize
pub fn visible_count(&self) -> usize
Get total number of visible entries
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryData
impl RefUnwindSafe for EntryData
impl Send for EntryData
impl Sync for EntryData
impl Unpin for EntryData
impl UnsafeUnpin for EntryData
impl UnwindSafe for EntryData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more