pub enum TabbedOutcome {
Continue,
Unchanged,
Changed,
Select(usize),
Close(usize),
}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.
Select(usize)
Tab selection changed.
Close(usize)
Selected tab should be closed.
Trait Implementations§
Source§impl Clone for TabbedOutcome
impl Clone for TabbedOutcome
Source§fn clone(&self) -> TabbedOutcome
fn clone(&self) -> TabbedOutcome
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 TabbedOutcome
impl ConsumedEvent for TabbedOutcome
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 TabbedOutcome
impl Debug for TabbedOutcome
Source§impl From<Outcome> for TabbedOutcome
impl From<Outcome> for TabbedOutcome
Source§impl From<TabbedOutcome> for Outcome
impl From<TabbedOutcome> for Outcome
Source§fn from(value: TabbedOutcome) -> Self
fn from(value: TabbedOutcome) -> Self
Converts to this type from the input type.
Source§impl From<bool> for TabbedOutcome
impl From<bool> for TabbedOutcome
Source§impl HandleEvent<Event, MouseOnly, TabbedOutcome> for TabbedState
impl HandleEvent<Event, MouseOnly, TabbedOutcome> for TabbedState
Source§impl HandleEvent<Event, Regular, TabbedOutcome> for TabbedState
Handle the regular events for Tabbed.
impl HandleEvent<Event, Regular, TabbedOutcome> for TabbedState
Handle the regular events for Tabbed.
Source§impl Ord for TabbedOutcome
impl Ord for TabbedOutcome
Source§fn cmp(&self, other: &TabbedOutcome) -> Ordering
fn cmp(&self, other: &TabbedOutcome) -> 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 TabbedOutcome
impl PartialEq for TabbedOutcome
Source§impl PartialOrd for TabbedOutcome
impl PartialOrd for TabbedOutcome
impl Copy for TabbedOutcome
impl Eq for TabbedOutcome
impl StructuralPartialEq for TabbedOutcome
Auto Trait Implementations§
impl Freeze for TabbedOutcome
impl RefUnwindSafe for TabbedOutcome
impl Send for TabbedOutcome
impl Sync for TabbedOutcome
impl Unpin for TabbedOutcome
impl UnwindSafe for TabbedOutcome
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