Enum rat_widget::event::TextOutcome
source · pub enum TextOutcome {
NotUsed,
Unchanged,
Changed,
TextChanged,
}Expand description
Result of event handling.
Variants§
NotUsed
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.
TextChanged
Text content has changed.
Trait Implementations§
source§impl Clone for TextOutcome
impl Clone for TextOutcome
source§fn clone(&self) -> TextOutcome
fn clone(&self) -> TextOutcome
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 TextOutcome
impl ConsumedEvent for TextOutcome
source§impl Debug for TextOutcome
impl Debug for TextOutcome
source§impl From<TextOutcome> for Outcome
impl From<TextOutcome> for Outcome
source§fn from(value: TextOutcome) -> Self
fn from(value: TextOutcome) -> Self
Converts to this type from the input type.
source§impl From<bool> for TextOutcome
impl From<bool> for TextOutcome
source§impl HandleEvent<Event, ConvenientKeys, TextOutcome> for DateInputState
impl HandleEvent<Event, ConvenientKeys, TextOutcome> for DateInputState
source§fn handle(&mut self, event: &Event, _keymap: ConvenientKeys) -> TextOutcome
fn handle(&mut self, event: &Event, _keymap: ConvenientKeys) -> TextOutcome
Handle an event. Read more
source§impl HandleEvent<Event, FocusKeys, TextOutcome> for DateInputState
impl HandleEvent<Event, FocusKeys, TextOutcome> for DateInputState
source§impl HandleEvent<Event, FocusKeys, TextOutcome> for MaskedInputState
impl HandleEvent<Event, FocusKeys, TextOutcome> for MaskedInputState
source§impl HandleEvent<Event, FocusKeys, TextOutcome> for NumberInputState
impl HandleEvent<Event, FocusKeys, TextOutcome> for NumberInputState
source§impl HandleEvent<Event, FocusKeys, TextOutcome> for TextAreaState
impl HandleEvent<Event, FocusKeys, TextOutcome> for TextAreaState
source§impl HandleEvent<Event, FocusKeys, TextOutcome> for TextInputState
impl HandleEvent<Event, FocusKeys, TextOutcome> for TextInputState
source§impl HandleEvent<Event, MouseOnly, TextOutcome> for DateInputState
impl HandleEvent<Event, MouseOnly, TextOutcome> for DateInputState
source§impl HandleEvent<Event, MouseOnly, TextOutcome> for MaskedInputState
impl HandleEvent<Event, MouseOnly, TextOutcome> for MaskedInputState
source§impl HandleEvent<Event, MouseOnly, TextOutcome> for NumberInputState
impl HandleEvent<Event, MouseOnly, TextOutcome> for NumberInputState
source§impl HandleEvent<Event, MouseOnly, TextOutcome> for TextAreaState
impl HandleEvent<Event, MouseOnly, TextOutcome> for TextAreaState
source§impl HandleEvent<Event, MouseOnly, TextOutcome> for TextInputState
impl HandleEvent<Event, MouseOnly, TextOutcome> for TextInputState
source§impl HandleEvent<Event, ReadOnly, TextOutcome> for DateInputState
impl HandleEvent<Event, ReadOnly, TextOutcome> for DateInputState
source§impl HandleEvent<Event, ReadOnly, TextOutcome> for MaskedInputState
impl HandleEvent<Event, ReadOnly, TextOutcome> for MaskedInputState
source§impl HandleEvent<Event, ReadOnly, TextOutcome> for NumberInputState
impl HandleEvent<Event, ReadOnly, TextOutcome> for NumberInputState
source§impl HandleEvent<Event, ReadOnly, TextOutcome> for TextAreaState
impl HandleEvent<Event, ReadOnly, TextOutcome> for TextAreaState
source§impl HandleEvent<Event, ReadOnly, TextOutcome> for TextInputState
impl HandleEvent<Event, ReadOnly, TextOutcome> for TextInputState
source§impl Ord for TextOutcome
impl Ord for TextOutcome
source§fn cmp(&self, other: &TextOutcome) -> Ordering
fn cmp(&self, other: &TextOutcome) -> 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 TextOutcome
impl PartialEq for TextOutcome
source§fn eq(&self, other: &TextOutcome) -> bool
fn eq(&self, other: &TextOutcome) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TextOutcome
impl PartialOrd for TextOutcome
source§fn partial_cmp(&self, other: &TextOutcome) -> Option<Ordering>
fn partial_cmp(&self, other: &TextOutcome) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for TextOutcome
impl Eq for TextOutcome
impl StructuralPartialEq for TextOutcome
Auto Trait Implementations§
impl Freeze for TextOutcome
impl RefUnwindSafe for TextOutcome
impl Send for TextOutcome
impl Sync for TextOutcome
impl Unpin for TextOutcome
impl UnwindSafe for TextOutcome
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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