Enum rat_widget::event::EditOutcome
source · pub enum EditOutcome {
NotUsed,
Unchanged,
Changed,
Cancel,
Commit,
CommitAndAppend,
CommitAndEdit,
Insert,
Remove,
Edit,
Append,
}Expand description
Result of handling EditKeys.
The FTableState and EditFTableState don’t actually change your data, but this indicates what action is requested.
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.
Cancel
Cancel an ongoing edit.
Commit
Commit the current edit.
CommitAndAppend
Commit the edit, append a new line.
CommitAndEdit
Commit the edit, edit next line.
Insert
Insert an item at the selection.
Remove
Remove the item at the selection.
Edit
Edit the item at the selection.
Append
Append an item after last row. Might want to start the edit too.
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
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) -> Outcome
fn from(value: EditOutcome) -> Outcome
Converts to this type from the input type.
source§impl From<Outcome> for EditOutcome
impl From<Outcome> for EditOutcome
source§fn from(value: Outcome) -> EditOutcome
fn from(value: Outcome) -> EditOutcome
Converts to this type from the input type.
source§impl<EState, EQualifier> HandleEvent<Event, EQualifier, EditOutcome> for EditFTableState<EState>
impl<EState, EQualifier> HandleEvent<Event, EQualifier, EditOutcome> for EditFTableState<EState>
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<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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