pub struct TableState { /* private fields */ }Implementations§
Source§impl TableState
impl TableState
pub const fn new() -> Self
pub const fn with_offset(self, offset: usize) -> Self
pub fn with_selected(self, selected: impl Into<Option<usize>>) -> Self
pub fn with_selected_column(self, selected: impl Into<Option<usize>>) -> Self
pub fn with_selected_cell( self, selected: impl Into<Option<(usize, 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_column(&self) -> Option<usize>
pub const fn selected_cell(&self) -> Option<(usize, usize)>
pub const fn selected_mut(&mut self) -> &mut Option<usize>
pub const fn selected_column_mut(&mut self) -> &mut Option<usize>
pub const fn select(&mut self, index: Option<usize>)
pub const fn select_column(&mut self, index: Option<usize>)
pub const fn select_cell(&mut self, indexes: Option<(usize, usize)>)
pub fn select_next(&mut self)
pub fn select_next_column(&mut self)
pub fn select_previous(&mut self)
pub fn select_previous_column(&mut self)
pub const fn select_first(&mut self)
pub const fn select_first_column(&mut self)
pub const fn select_last(&mut self)
pub const fn select_last_column(&mut self)
pub fn scroll_down_by(&mut self, amount: u16)
pub fn scroll_up_by(&mut self, amount: u16)
pub fn scroll_right_by(&mut self, amount: u16)
pub fn scroll_left_by(&mut self, amount: u16)
Trait Implementations§
Source§impl Clone for TableState
impl Clone for TableState
Source§fn clone(&self) -> TableState
fn clone(&self) -> TableState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableState
impl Debug for TableState
Source§impl Default for TableState
impl Default for TableState
Source§fn default() -> TableState
fn default() -> TableState
Returns the “default value” for a type. Read more
Source§impl PartialEq for TableState
impl PartialEq for TableState
impl Copy for TableState
impl Eq for TableState
impl StructuralPartialEq for TableState
Auto Trait Implementations§
impl Freeze for TableState
impl RefUnwindSafe for TableState
impl Send for TableState
impl Sync for TableState
impl Unpin for TableState
impl UnsafeUnpin for TableState
impl UnwindSafe for TableState
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