pub struct TitleSelectPopup {
pub titles: Vec<String>,
pub filtered_titles: Vec<TitleMatch>,
pub selected_index: usize,
pub visible: bool,
pub scroll_offset: usize,
pub search_query: String,
}Fields§
§titles: Vec<String>§filtered_titles: Vec<TitleMatch>§selected_index: usize§visible: bool§scroll_offset: usize§search_query: StringImplementations§
Source§impl TitleSelectPopup
impl TitleSelectPopup
pub fn new() -> Self
pub fn set_titles(&mut self, titles: Vec<String>)
pub fn reset_filtered_titles(&mut self)
pub fn move_selection_up(&mut self, visible_items: usize)
pub fn move_selection_down(&mut self, visible_items: usize)
pub fn update_search(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TitleSelectPopup
impl RefUnwindSafe for TitleSelectPopup
impl Send for TitleSelectPopup
impl Sync for TitleSelectPopup
impl Unpin for TitleSelectPopup
impl UnwindSafe for TitleSelectPopup
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().