pub struct LineNumbersCfg<U> {
pub num_rel: LineNum,
pub align: Alignment,
pub main_align: Alignment,
pub show_wraps: bool,
pub specs: PushSpecs,
pub ghost: PhantomData<U>,
}Expand description
Configuration options for the LineNumbers<U> widget.
Fields§
§num_rel: LineNum§align: Alignment§main_align: Alignment§show_wraps: bool§specs: PushSpecs§ghost: PhantomData<U>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 for LineNumbersCfg<U>
impl<U> Clone for LineNumbersCfg<U>
Source§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 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