pub struct LineNumbersCfg<U> { /* private fields */ }Expand description
Configuration options for the LineNumbers<U> widget.
Implementations§
Source§impl<U> LineNumbersCfg<U>
impl<U> LineNumbersCfg<U>
pub fn new() -> Self
pub fn absolute(self) -> Self
pub fn relative(self) -> Self
pub fn rel_abs(self) -> Self
pub fn align_left(self) -> Self
pub fn align_center(self) -> Self
pub fn align_right(self) -> Self
pub fn align_main_left(self) -> Self
pub fn align_main_center(self) -> Self
pub fn align_main_right(self) -> Self
pub fn show_wraps(self) -> Self
pub fn hide_wraps(self) -> Self
pub fn on_the_right(self) -> Self
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>
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<U: Debug> Debug for LineNumbersCfg<U>
impl<U: Debug> Debug for LineNumbersCfg<U>
Source§impl<U> Default for LineNumbersCfg<U>
impl<U> Default for LineNumbersCfg<U>
Source§impl<U: Ui> WidgetCfg<U> for LineNumbersCfg<U>
impl<U: Ui> WidgetCfg<U> for LineNumbersCfg<U>
impl<U: Copy> Copy for LineNumbersCfg<U>
Auto Trait Implementations§
impl<U> Freeze for LineNumbersCfg<U>
impl<U> RefUnwindSafe for LineNumbersCfg<U>where
U: RefUnwindSafe,
impl<U> Send for LineNumbersCfg<U>where
U: Send,
impl<U> Sync for LineNumbersCfg<U>where
U: Sync,
impl<U> Unpin for LineNumbersCfg<U>where
U: Unpin,
impl<U> UnwindSafe for LineNumbersCfg<U>where
U: UnwindSafe,
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)