pub struct LineNumbers<'a> { /* private fields */ }Expand description
Renders line-numbers.
Implementations§
Source§impl<'a> LineNumbers<'a>
impl<'a> LineNumbers<'a>
pub fn new() -> Self
Sourcepub fn flag_width(self, width: u16) -> Self
pub fn flag_width(self, width: u16) -> Self
Required width for the flags.
Sourcepub fn format(self, format: NumberFormat) -> Self
pub fn format(self, format: NumberFormat) -> Self
Line number format.
Sourcepub fn styles(self, styles: LineNumberStyle) -> Self
pub fn styles(self, styles: LineNumberStyle) -> Self
Complete set of styles.
Sourcepub fn cursor_style(self, style: Style) -> Self
pub fn cursor_style(self, style: Style) -> Self
Style for current line.
Trait Implementations§
Source§impl<'a> Clone for LineNumbers<'a>
impl<'a> Clone for LineNumbers<'a>
Source§fn clone(&self) -> LineNumbers<'a>
fn clone(&self) -> LineNumbers<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LineNumbers<'a>
impl<'a> Debug for LineNumbers<'a>
Source§impl<'a> Default for LineNumbers<'a>
impl<'a> Default for LineNumbers<'a>
Source§fn default() -> LineNumbers<'a>
fn default() -> LineNumbers<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> StatefulWidget for LineNumbers<'a>
impl<'a> StatefulWidget for LineNumbers<'a>
Auto Trait Implementations§
impl<'a> Freeze for LineNumbers<'a>
impl<'a> RefUnwindSafe for LineNumbers<'a>
impl<'a> Send for LineNumbers<'a>
impl<'a> Sync for LineNumbers<'a>
impl<'a> Unpin for LineNumbers<'a>
impl<'a> UnwindSafe for LineNumbers<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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