pub enum ComboboxOutcome {
Continue,
Unchanged,
Changed,
Value,
TextChanged,
}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.
TextChanged
Textinput has changed
Trait Implementations§
Source§impl Clone for ComboboxOutcome
impl Clone for ComboboxOutcome
Source§fn clone(&self) -> ComboboxOutcome
fn clone(&self) -> ComboboxOutcome
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 ComboboxOutcome
impl ConsumedEvent for ComboboxOutcome
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 ComboboxOutcome
impl Debug for ComboboxOutcome
Source§impl From<ComboboxOutcome> for Outcome
impl From<ComboboxOutcome> for Outcome
Source§fn from(value: ComboboxOutcome) -> Self
fn from(value: ComboboxOutcome) -> Self
Converts to this type from the input type.
Source§impl From<Outcome> for ComboboxOutcome
impl From<Outcome> for ComboboxOutcome
Source§impl From<PopupOutcome> for ComboboxOutcome
impl From<PopupOutcome> for ComboboxOutcome
Source§fn from(value: PopupOutcome) -> Self
fn from(value: PopupOutcome) -> Self
Converts to this type from the input type.
Source§impl HandleEvent<Event, MouseOnly, ComboboxOutcome> for ComboboxState
impl HandleEvent<Event, MouseOnly, ComboboxOutcome> for ComboboxState
Source§impl HandleEvent<Event, Popup, ComboboxOutcome> for ComboboxState
impl HandleEvent<Event, Popup, ComboboxOutcome> for ComboboxState
Source§impl Ord for ComboboxOutcome
impl Ord for ComboboxOutcome
Source§fn cmp(&self, other: &ComboboxOutcome) -> Ordering
fn cmp(&self, other: &ComboboxOutcome) -> 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 ComboboxOutcome
impl PartialEq for ComboboxOutcome
Source§impl PartialOrd for ComboboxOutcome
impl PartialOrd for ComboboxOutcome
impl Copy for ComboboxOutcome
impl Eq for ComboboxOutcome
impl StructuralPartialEq for ComboboxOutcome
Auto Trait Implementations§
impl Freeze for ComboboxOutcome
impl RefUnwindSafe for ComboboxOutcome
impl Send for ComboboxOutcome
impl Sync for ComboboxOutcome
impl Unpin for ComboboxOutcome
impl UnwindSafe for ComboboxOutcome
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