Enum Outcome
#[non_exhaustive]pub enum Outcome {
Ignored,
Handled,
Pressed(WidgetId),
Changed(WidgetId),
Submitted(WidgetId),
}Expand description
What a widget made of an input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ignored
No widget took it: leave the hook’s canceled alone.
Handled
A widget took it (a focus change, a caret move, a drag) with nothing else to report.
Pressed(WidgetId)
The button was pressed: a left click, or Enter or Space while it has the focus.
Changed(WidgetId)
The text field’s text changed.
Submitted(WidgetId)
Enter was pressed in the text field.
Implementations§
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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