pub enum GutterNumbers {
None,
Absolute,
Relative {
cursor_row: usize,
},
Hybrid {
cursor_row: usize,
},
}Expand description
Controls what numbers are rendered in the gutter.
Matches vim’s :set number / :set relativenumber combinations.
Variants§
None
No line numbers — gutter cells painted blank (still occupies width).
Absolute
1-based absolute row numbers (current default).
Relative
Offset from cursor_row for non-cursor rows; cursor row shows 0.
Hybrid
Vim’s nu+rnu: cursor row shows its absolute number, others show
offset from cursor_row.
Trait Implementations§
Source§impl Clone for GutterNumbers
impl Clone for GutterNumbers
Source§fn clone(&self) -> GutterNumbers
fn clone(&self) -> GutterNumbers
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 GutterNumbers
impl Debug for GutterNumbers
Source§impl Default for GutterNumbers
impl Default for GutterNumbers
Source§fn default() -> GutterNumbers
fn default() -> GutterNumbers
Returns the “default value” for a type. Read more
impl Copy for GutterNumbers
Auto Trait Implementations§
impl Freeze for GutterNumbers
impl RefUnwindSafe for GutterNumbers
impl Send for GutterNumbers
impl Sync for GutterNumbers
impl Unpin for GutterNumbers
impl UnsafeUnpin for GutterNumbers
impl UnwindSafe for GutterNumbers
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