Enum rat_widget::event::TabbedOutcome
source · 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 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 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, E1>(self, f: F) -> Result<Self, E1>
fn or_else_try<F, E1>(self, f: F) -> Result<Self, E1>
Or-Else chaining with
is_consumed() as the split.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
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§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<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