Enum rat_ftable::event::EditOutcome
source · pub enum EditOutcome {
NotUsed,
Unchanged,
Changed,
Insert,
Remove,
Edit,
}Variants§
NotUsed
The given event has not been used at all.
Unchanged
The event has been recognized, but the result was nil. Further processing for this event may stop.
Changed
The event has been recognized and there is some change due to it. Further processing for this event may stop. Rendering the ui is advised.
Insert
Insert at the selection.
Remove
Remove the selection.
Edit
Edit the selection.
Trait Implementations§
source§impl Clone for EditOutcome
impl Clone for EditOutcome
source§fn clone(&self) -> EditOutcome
fn clone(&self) -> EditOutcome
Returns a copy 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 EditOutcome
impl ConsumedEvent for EditOutcome
fn is_consumed(&self) -> bool
source§impl Debug for EditOutcome
impl Debug for EditOutcome
source§impl From<EditOutcome> for Outcome
impl From<EditOutcome> for Outcome
source§fn from(value: EditOutcome) -> Self
fn from(value: EditOutcome) -> Self
Converts to this type from the input type.
source§impl From<Outcome> for EditOutcome
impl From<Outcome> for EditOutcome
source§impl<Selection> HandleEvent<Event, EditKeys, EditOutcome> for FTableState<Selection>
impl<Selection> HandleEvent<Event, EditKeys, EditOutcome> for FTableState<Selection>
source§impl Ord for EditOutcome
impl Ord for EditOutcome
source§fn cmp(&self, other: &EditOutcome) -> Ordering
fn cmp(&self, other: &EditOutcome) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EditOutcome
impl PartialEq for EditOutcome
source§fn eq(&self, other: &EditOutcome) -> bool
fn eq(&self, other: &EditOutcome) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for EditOutcome
impl PartialOrd for EditOutcome
source§fn partial_cmp(&self, other: &EditOutcome) -> Option<Ordering>
fn partial_cmp(&self, other: &EditOutcome) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for EditOutcome
impl Eq for EditOutcome
impl StructuralPartialEq for EditOutcome
Auto Trait Implementations§
impl Freeze for EditOutcome
impl RefUnwindSafe for EditOutcome
impl Send for EditOutcome
impl Sync for EditOutcome
impl Unpin for EditOutcome
impl UnwindSafe for EditOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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