pub enum Curswant {
Col(u32),
EndOfLine,
}Expand description
VM.3g-1: vim’s curswant — the column a vertical motion aims for, which
survives passing through a SHORT line. jj from column 9 over a 2-column
line lands back on 9, not on 2 (vim 9.2, vimcheck_curswant2.vim).
Variants§
Col(u32)
Aim for this byte column, clamped to whatever line is reached.
EndOfLine
vim’s MAXCOL: $ sticks to the END of every line it lands on, so
$jj sits at each line’s end rather than at a fixed column.
Trait Implementations§
impl Copy for Curswant
impl Eq for Curswant
impl StructuralPartialEq for Curswant
Auto Trait Implementations§
impl Freeze for Curswant
impl RefUnwindSafe for Curswant
impl Send for Curswant
impl Sync for Curswant
impl Unpin for Curswant
impl UnsafeUnpin for Curswant
impl UnwindSafe for Curswant
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.