pub struct LastVisual {
pub mode: Mode,
pub anchor: (usize, usize),
pub cursor: (usize, usize),
pub block_vcol: usize,
}Expand description
Saved visual-mode anchor + cursor for gv (re-enters the last
visual selection). mode carries which visual flavour to
restore; anchor / cursor mean different things per flavour:
Visual—anchoris the char-wise visual anchor.VisualLine—anchor.0is thevisual_line_anchorrow;anchor.1is unused.VisualBlock—anchorisblock_anchor,block_vcolis the sticky vcol that survives j/k clamping.
Fields§
§mode: Mode§anchor: (usize, usize)§cursor: (usize, usize)§block_vcol: usizeTrait Implementations§
Source§impl Clone for LastVisual
impl Clone for LastVisual
Source§fn clone(&self) -> LastVisual
fn clone(&self) -> LastVisual
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 moreSource§impl Debug for LastVisual
impl Debug for LastVisual
impl Copy for LastVisual
Auto Trait Implementations§
impl Freeze for LastVisual
impl RefUnwindSafe for LastVisual
impl Send for LastVisual
impl Sync for LastVisual
impl Unpin for LastVisual
impl UnsafeUnpin for LastVisual
impl UnwindSafe for LastVisual
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more