pub enum LegacyForm {
Representable,
CollapsesTo(KeyInput),
Unrepresentable,
}Expand description
How a KeyInput survives the legacy 7-bit C0 terminal encoding,
independent of any enhanced protocol. See the module docs.
Variants§
Representable
Encodable and distinguishable as-is under legacy C0.
CollapsesTo(KeyInput)
Loses information under legacy C0 and becomes indistinguishable from this
other chord (e.g. ctrl+shift+s → ctrl+s, ctrl+i → tab). A binding
to the original silently behaves like the contained chord on legacy
terminals — bind that chord (or use a keymap-seq sequence) instead.
Unrepresentable
Has no legacy C0 encoding at all (any chord holding super/cmd); a
legacy terminal cannot deliver it.
Trait Implementations§
Source§impl Clone for LegacyForm
impl Clone for LegacyForm
Source§fn clone(&self) -> LegacyForm
fn clone(&self) -> LegacyForm
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 LegacyForm
Source§impl Debug for LegacyForm
impl Debug for LegacyForm
impl Eq for LegacyForm
Source§impl PartialEq for LegacyForm
impl PartialEq for LegacyForm
Source§fn eq(&self, other: &LegacyForm) -> bool
fn eq(&self, other: &LegacyForm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LegacyForm
Auto Trait Implementations§
impl Freeze for LegacyForm
impl RefUnwindSafe for LegacyForm
impl Send for LegacyForm
impl Sync for LegacyForm
impl Unpin for LegacyForm
impl UnsafeUnpin for LegacyForm
impl UnwindSafe for LegacyForm
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