pub struct Gutter {
pub width: u16,
pub style: Style,
pub line_offset: usize,
}Expand description
Configuration for the line-number gutter rendered to the left of
the text area. width is the total cell count reserved
(including any trailing spacer); the renderer right-aligns the
1-based row number into the leftmost width - 1 cells.
line_offset is added to the displayed line number, so a host
rendering a windowed view of a larger document (e.g. picker preview
of a 7000-line buffer) can show the original line numbers instead
of starting at 1.
Fields§
§width: u16§style: Style§line_offset: usizeTrait Implementations§
impl Copy for Gutter
Auto Trait Implementations§
impl Freeze for Gutter
impl RefUnwindSafe for Gutter
impl Send for Gutter
impl Sync for Gutter
impl Unpin for Gutter
impl UnsafeUnpin for Gutter
impl UnwindSafe for Gutter
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