pub struct LineNumbersCfg<_U> { /* private fields */ }Expand description
WidgetCfg for the LineNumbers widget
Contains a [LineNumbersOptions], which, unlike
LineNumbersCfg, is modified by the &mut version of the
builder pattern.
Implementations§
Source§impl<_U> LineNumbersCfg<_U>
impl<_U> LineNumbersCfg<_U>
Sourcepub fn align_left(self) -> Self
pub fn align_left(self) -> Self
Aligns all numbers left
If you want the main line’s number to be aligned differently,
call one of the align_main_* functions after this one.
Sourcepub fn align_center(self) -> Self
pub fn align_center(self) -> Self
Aligns all numbers to the center
If you want the main line’s number to be aligned differently,
call one of the align_main_* functions after this one.
Sourcepub fn align_right(self) -> Self
pub fn align_right(self) -> Self
Aligns all numbers right
If you want the main line’s number to be aligned differently,
call one of the align_main_* functions after this one.
Sourcepub fn align_main_left(self) -> Self
pub fn align_main_left(self) -> Self
Aligns onle the main line’s number to the left
Sourcepub fn align_main_center(self) -> Self
pub fn align_main_center(self) -> Self
Aligns onle the main line’s number to the center
Sourcepub fn align_main_right(self) -> Self
pub fn align_main_right(self) -> Self
Aligns onle the main line’s number to the right
Sourcepub fn show_wraps(self) -> Self
pub fn show_wraps(self) -> Self
Shows wrapping lines, is false by default
Sourcepub fn hide_wraps(self) -> Self
pub fn hide_wraps(self) -> Self
Hides wrapping lines, is true by default
Sourcepub fn on_the_right(self) -> Self
pub fn on_the_right(self) -> Self
Place the LineNumbers on the right
Do note that this has no effect if done at runtime.
Trait Implementations§
Source§impl<_U: Clone> Clone for LineNumbersCfg<_U>
impl<_U: Clone> Clone for LineNumbersCfg<_U>
Source§fn clone(&self) -> LineNumbersCfg<_U>
fn clone(&self) -> LineNumbersCfg<_U>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more