pub enum FormOutcome {
Continue,
Unchanged,
Changed,
Page,
}Expand description
Result of event handling.
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.
Page
Displayed page changed.
Trait Implementations§
Source§impl Clone for FormOutcome
impl Clone for FormOutcome
Source§fn clone(&self) -> FormOutcome
fn clone(&self) -> FormOutcome
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 FormOutcome
impl ConsumedEvent for FormOutcome
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 FormOutcome
impl Debug for FormOutcome
Source§impl From<FormOutcome> for Outcome
impl From<FormOutcome> for Outcome
Source§fn from(value: FormOutcome) -> Self
fn from(value: FormOutcome) -> Self
Converts to this type from the input type.
Source§impl From<Outcome> for FormOutcome
impl From<Outcome> for FormOutcome
Source§impl<W> HandleEvent<Event, MouseOnly, FormOutcome> for FormState<W>
impl<W> HandleEvent<Event, MouseOnly, FormOutcome> for FormState<W>
Source§impl<W> HandleEvent<Event, Regular, FormOutcome> for FormState<W>
impl<W> HandleEvent<Event, Regular, FormOutcome> for FormState<W>
Source§impl Ord for FormOutcome
impl Ord for FormOutcome
Source§fn cmp(&self, other: &FormOutcome) -> Ordering
fn cmp(&self, other: &FormOutcome) -> 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 FormOutcome
impl PartialEq for FormOutcome
Source§impl PartialOrd for FormOutcome
impl PartialOrd for FormOutcome
impl Copy for FormOutcome
impl Eq for FormOutcome
impl StructuralPartialEq for FormOutcome
Auto Trait Implementations§
impl Freeze for FormOutcome
impl RefUnwindSafe for FormOutcome
impl Send for FormOutcome
impl Sync for FormOutcome
impl Unpin for FormOutcome
impl UnwindSafe for FormOutcome
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