pub enum Preemption {
Always(Preempted),
WhenCounting(Preempted),
}Expand description
WHETHER dispatch preempts a key, and whether it always does.
The distinction is load-bearing for reachability: 1–9 in Normal are
preempted unconditionally, so a binding for one can never fire. 0 is
preempted only while a count is being typed — which is exactly why 0 is
bindable, and IS bound, to Motion::LineStart.
Variants§
Always(Preempted)
The key never reaches the binding table. A declaration is dead.
WhenCounting(Preempted)
The key reaches the table unless a count is pending. Bindable.
Trait Implementations§
Source§impl Clone for Preemption
impl Clone for Preemption
Source§fn clone(&self) -> Preemption
fn clone(&self) -> Preemption
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 Preemption
Source§impl Debug for Preemption
impl Debug for Preemption
impl Eq for Preemption
Source§impl PartialEq for Preemption
impl PartialEq for Preemption
impl StructuralPartialEq for Preemption
Auto Trait Implementations§
impl Freeze for Preemption
impl RefUnwindSafe for Preemption
impl Send for Preemption
impl Sync for Preemption
impl Unpin for Preemption
impl UnsafeUnpin for Preemption
impl UnwindSafe for Preemption
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