pub enum FormEvent {
None,
FocusMoved,
FieldChanged(String),
Submit,
Cancel,
}Expand description
Outcome of routing a key through FormState::handle_key.
Variants§
None
FocusMoved
Focus moved to a different (visible) row. Callers typically re-validate and refresh derived visibility.
FieldChanged(String)
The value of the focused field changed (insert/delete/cycle/toggle).
Submit
User requested submit (Enter on the last visible row).
Cancel
User pressed Esc.
Trait Implementations§
impl Eq for FormEvent
impl StructuralPartialEq for FormEvent
Auto Trait Implementations§
impl Freeze for FormEvent
impl RefUnwindSafe for FormEvent
impl Send for FormEvent
impl Sync for FormEvent
impl Unpin for FormEvent
impl UnsafeUnpin for FormEvent
impl UnwindSafe for FormEvent
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> 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