pub enum KeyboardIntent {
DeleteSelection,
DeleteSelectionForKey(Code),
NudgeSelection(NodeNudgeRequest),
}Expand description
High-level keyboard intent handled by the headless runtime.
Variants§
DeleteSelection
Delete the current selection without checking a key binding.
DeleteSelectionForKey(Code)
Delete the current selection if the provided key matches the configured binding.
NudgeSelection(NodeNudgeRequest)
Nudge the current selected nodes.
Trait Implementations§
Source§impl Clone for KeyboardIntent
impl Clone for KeyboardIntent
Source§fn clone(&self) -> KeyboardIntent
fn clone(&self) -> KeyboardIntent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyboardIntent
Source§impl Debug for KeyboardIntent
impl Debug for KeyboardIntent
impl Eq for KeyboardIntent
Source§impl PartialEq for KeyboardIntent
impl PartialEq for KeyboardIntent
Source§fn eq(&self, other: &KeyboardIntent) -> bool
fn eq(&self, other: &KeyboardIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyboardIntent
Auto Trait Implementations§
impl Freeze for KeyboardIntent
impl RefUnwindSafe for KeyboardIntent
impl Send for KeyboardIntent
impl Sync for KeyboardIntent
impl Unpin for KeyboardIntent
impl UnsafeUnpin for KeyboardIntent
impl UnwindSafe for KeyboardIntent
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.