pub enum EditOutcome {
Continue,
Unchanged,
Changed,
Cancel,
Commit,
CommitAndAppend,
CommitAndEdit,
Insert,
Remove,
Edit,
Append,
}Expand description
Result type for the edit widgets.
Variants§
Continue
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 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 EditOutcome
impl ConsumedEvent for EditOutcome
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 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<'a, S> HandleEvent<Event, &'a <S as TableEditorState>::Context<'a>, EditOutcome> for EditableTableState<S>where
S: HandleEvent<Event, &'a <S as TableEditorState>::Context<'a>, EditOutcome> + TableEditorState,
impl<'a, S> HandleEvent<Event, &'a <S as TableEditorState>::Context<'a>, EditOutcome> for EditableTableState<S>where
S: HandleEvent<Event, &'a <S as TableEditorState>::Context<'a>, EditOutcome> + TableEditorState,
Source§fn handle(
&mut self,
event: &Event,
ctx: &'a <S as TableEditorState>::Context<'a>,
) -> EditOutcome
fn handle( &mut self, event: &Event, ctx: &'a <S as TableEditorState>::Context<'a>, ) -> EditOutcome
Handle an event. Read more
Source§impl<S, C> HandleEvent<Event, C, EditOutcome> for EditListState<S>where
S: HandleEvent<Event, C, EditOutcome> + HandleEvent<Event, MouseOnly, EditOutcome> + HasFocus,
impl<S, C> HandleEvent<Event, C, EditOutcome> for EditListState<S>where
S: HandleEvent<Event, C, EditOutcome> + HandleEvent<Event, MouseOnly, EditOutcome> + HasFocus,
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§impl PartialOrd for EditOutcome
impl PartialOrd for EditOutcome
impl 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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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