pub struct ChordSeq(pub Vec<Chord>);Expand description
A sequence of chords, e.g. <leader>ff is three chords.
Tuple Fields§
§0: Vec<Chord>Implementations§
Source§impl ChordSeq
impl ChordSeq
Sourcepub fn parse(s: &str, leader: Chord) -> Result<Self, KeyParseError>
pub fn parse(s: &str, leader: Chord) -> Result<Self, KeyParseError>
Parse vim key notation. <leader> expands to the supplied chord, so the leader is a
configuration value rather than something baked into every binding.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn starts_with(&self, prefix: &[Chord]) -> bool
Trait Implementations§
impl Eq for ChordSeq
Source§impl Ord for ChordSeq
impl Ord for ChordSeq
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ChordSeq
impl PartialOrd for ChordSeq
impl StructuralPartialEq for ChordSeq
Auto Trait Implementations§
impl Freeze for ChordSeq
impl RefUnwindSafe for ChordSeq
impl Send for ChordSeq
impl Sync for ChordSeq
impl Unpin for ChordSeq
impl UnsafeUnpin for ChordSeq
impl UnwindSafe for ChordSeq
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