pub enum TableMessage {
Up,
Down,
First,
Last,
PageUp(usize),
PageDown(usize),
Select,
SortBy(usize),
ClearSort,
}Expand description
Messages that can be sent to a Table component.
Variants§
Up
Move selection up by one row.
Down
Move selection down by one row.
First
Move selection to the first row.
Last
Move selection to the last row.
PageUp(usize)
Move selection up by a page.
PageDown(usize)
Move selection down by a page.
Select
Confirm the current selection.
SortBy(usize)
Sort by the given column index.
If already sorted by this column, toggles direction. If sorted ascending, becomes descending. If sorted descending, clears the sort.
ClearSort
Clear the current sort, returning to original order.
Trait Implementations§
Source§impl Clone for TableMessage
impl Clone for TableMessage
Source§fn clone(&self) -> TableMessage
fn clone(&self) -> TableMessage
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 TableMessage
impl Debug for TableMessage
Source§impl PartialEq for TableMessage
impl PartialEq for TableMessage
impl Eq for TableMessage
impl StructuralPartialEq for TableMessage
Auto Trait Implementations§
impl Freeze for TableMessage
impl RefUnwindSafe for TableMessage
impl Send for TableMessage
impl Sync for TableMessage
impl Unpin for TableMessage
impl UnwindSafe for TableMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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