#[non_exhaustive]pub enum LegacyLint {
Unrepresentable {
chord: String,
},
CollapsesTo {
chord: String,
collapses_to: String,
},
}Expand description
A bound chord that will not survive a legacy 7-bit (C0) terminal, reported by
legacy_lints. The variants mirror the two lossy LegacyForm cases (a
Representable chord produces no lint).
Chords are rendered in canonical form (KeyInput’s Display), matching how
the config layer names chords in its warnings. This is #[non_exhaustive]:
the empirical capability-aware layer may add environment-dependent lint
categories (e.g. “may not be delivered on this terminal”) additively.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unrepresentable
The chord holds super/cmd: it has no legacy C0 encoding at all, so a
legacy terminal can never deliver it. See
Unrepresentable.
CollapsesTo
On a legacy C0 terminal the chord is indistinguishable from another, so a
binding to it also fires on collapses_to (e.g. ctrl+shift+s ≡
ctrl+s, ctrl+i ≡ tab). See CollapsesTo.
Trait Implementations§
Source§impl Clone for LegacyLint
impl Clone for LegacyLint
Source§fn clone(&self) -> LegacyLint
fn clone(&self) -> LegacyLint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LegacyLint
impl Debug for LegacyLint
Source§impl PartialEq for LegacyLint
impl PartialEq for LegacyLint
Source§fn eq(&self, other: &LegacyLint) -> bool
fn eq(&self, other: &LegacyLint) -> bool
self and other values to be equal, and is used by ==.