#[non_exhaustive]pub enum TableOutcome {
Continue,
Unchanged,
Changed,
Selected,
}Expand description
Result value for event-handling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continue
The given event was not handled at all.
Unchanged
The event was handled, no repaint necessary.
Changed
The event was handled, repaint necessary.
Selected
The selection has changed.
Trait Implementations§
Source§impl Clone for TableOutcome
impl Clone for TableOutcome
Source§fn clone(&self) -> TableOutcome
fn clone(&self) -> TableOutcome
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 ConsumedEvent for TableOutcome
impl ConsumedEvent for TableOutcome
Source§fn is_consumed(&self) -> bool
fn is_consumed(&self) -> bool
Is this the ‘consumed’ result.
Source§fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
Or-Else chaining with
is_consumed() as the split.Source§fn and_then<F>(self, f: F) -> Self
fn and_then<F>(self, f: F) -> Self
And_then-chaining based on is_consumed().
Returns max(self, f()).
Source§fn and_then_try<F, E>(self, f: F) -> Result<Self, E>
fn and_then_try<F, E>(self, f: F) -> Result<Self, E>
And_then-chaining based on is_consumed().
Returns max(self, f()).
Source§impl Debug for TableOutcome
impl Debug for TableOutcome
Source§impl From<TableOutcome> for Outcome
impl From<TableOutcome> for Outcome
Source§fn from(value: TableOutcome) -> Outcome
fn from(value: TableOutcome) -> Outcome
Converts to this type from the input type.
Source§impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<CellSelection>
impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<CellSelection>
Source§impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<NoSelection>
impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<NoSelection>
Source§impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<RowSelection>
impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<RowSelection>
Source§impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<RowSetSelection>
impl HandleEvent<Event, MouseOnly, TableOutcome> for TableState<RowSetSelection>
Source§impl HandleEvent<Event, Regular, TableOutcome> for TableState<CellSelection>
impl HandleEvent<Event, Regular, TableOutcome> for TableState<CellSelection>
Source§impl HandleEvent<Event, Regular, TableOutcome> for TableState<NoSelection>
impl HandleEvent<Event, Regular, TableOutcome> for TableState<NoSelection>
Source§impl HandleEvent<Event, Regular, TableOutcome> for TableState<RowSelection>
impl HandleEvent<Event, Regular, TableOutcome> for TableState<RowSelection>
Source§impl HandleEvent<Event, Regular, TableOutcome> for TableState<RowSetSelection>
impl HandleEvent<Event, Regular, TableOutcome> for TableState<RowSetSelection>
Source§impl PartialEq for TableOutcome
impl PartialEq for TableOutcome
impl Copy for TableOutcome
impl Eq for TableOutcome
impl StructuralPartialEq for TableOutcome
Auto Trait Implementations§
impl Freeze for TableOutcome
impl RefUnwindSafe for TableOutcome
impl Send for TableOutcome
impl Sync for TableOutcome
impl Unpin for TableOutcome
impl UnwindSafe for TableOutcome
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