pub enum KeyDispatchResult {
Ignored,
RedrawOnly,
NeedsRebuild,
}Expand description
Outcome of dispatching a platform keyboard or text event.
Variants§
Ignored
Key was not handled by any focused input or container scroll.
RedrawOnly
Caret moved, selection range updated, or page scrolled without mutating component state. Requires redraw only.
NeedsRebuild
Text buffer was modified or form submitted/blurred, requiring layout/signal recalculation.
Implementations§
Source§impl KeyDispatchResult
impl KeyDispatchResult
pub fn is_handled(self) -> bool
pub fn needs_rebuild(self) -> bool
pub fn needs_redraw(self) -> bool
Trait Implementations§
Source§impl Clone for KeyDispatchResult
impl Clone for KeyDispatchResult
impl Copy for KeyDispatchResult
Source§impl Debug for KeyDispatchResult
impl Debug for KeyDispatchResult
impl Eq for KeyDispatchResult
Source§impl PartialEq for KeyDispatchResult
impl PartialEq for KeyDispatchResult
impl StructuralPartialEq for KeyDispatchResult
Auto Trait Implementations§
impl Forget for KeyDispatchResult
impl Freeze for KeyDispatchResult
impl Move for KeyDispatchResult
impl RefUnwindSafe for KeyDispatchResult
impl Send for KeyDispatchResult
impl Sync for KeyDispatchResult
impl Unpin for KeyDispatchResult
impl UnsafeUnpin for KeyDispatchResult
impl UnwindSafe for KeyDispatchResult
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§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.