pub struct ListState { /* private fields */ }Implementations§
Source§impl ListState
impl ListState
pub const fn with_offset(self, offset: usize) -> Self
pub const fn with_selected(self, selected: Option<usize>) -> Self
pub const fn offset(&self) -> usize
pub const fn offset_mut(&mut self) -> &mut usize
pub const fn selected(&self) -> Option<usize>
pub const fn selected_mut(&mut self) -> &mut Option<usize>
pub const fn select(&mut self, index: Option<usize>)
pub fn select_next(&mut self)
pub fn select_previous(&mut self)
pub const fn select_first(&mut self)
pub const fn select_last(&mut self)
pub fn scroll_down_by(&mut self, amount: u16)
pub fn scroll_up_by(&mut self, amount: u16)
Trait Implementations§
impl Copy for ListState
impl Eq for ListState
impl StructuralPartialEq for ListState
Auto Trait Implementations§
impl Freeze for ListState
impl RefUnwindSafe for ListState
impl Send for ListState
impl Sync for ListState
impl Unpin for ListState
impl UnsafeUnpin for ListState
impl UnwindSafe for ListState
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