pub enum RadioOutcome {
Continue,
Unchanged,
Changed,
Value,
}Expand description
Result value for event-handling.
Variants§
Continue
The given event was not handled at all.
Unchanged
The event was handled, no repaint necessary.
Changed
The event was handled, repaint necessary.
Value
An item has been selected.
Trait Implementations§
Source§impl Clone for RadioOutcome
impl Clone for RadioOutcome
Source§fn clone(&self) -> RadioOutcome
fn clone(&self) -> RadioOutcome
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 RadioOutcome
impl ConsumedEvent for RadioOutcome
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 RadioOutcome
impl Debug for RadioOutcome
Source§impl From<RadioOutcome> for Outcome
impl From<RadioOutcome> for Outcome
Source§fn from(value: RadioOutcome) -> Self
fn from(value: RadioOutcome) -> Self
Converts to this type from the input type.
Source§impl<T> HandleEvent<Event, MouseOnly, RadioOutcome> for RadioState<T>
impl<T> HandleEvent<Event, MouseOnly, RadioOutcome> for RadioState<T>
Source§impl<T> HandleEvent<Event, Regular, RadioOutcome> for RadioState<T>
impl<T> HandleEvent<Event, Regular, RadioOutcome> for RadioState<T>
Source§impl Ord for RadioOutcome
impl Ord for RadioOutcome
Source§fn cmp(&self, other: &RadioOutcome) -> Ordering
fn cmp(&self, other: &RadioOutcome) -> 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 RadioOutcome
impl PartialEq for RadioOutcome
Source§impl PartialOrd for RadioOutcome
impl PartialOrd for RadioOutcome
impl Copy for RadioOutcome
impl Eq for RadioOutcome
impl StructuralPartialEq for RadioOutcome
Auto Trait Implementations§
impl Freeze for RadioOutcome
impl RefUnwindSafe for RadioOutcome
impl Send for RadioOutcome
impl Sync for RadioOutcome
impl Unpin for RadioOutcome
impl UnwindSafe for RadioOutcome
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