pub struct LineNumbers<U: Ui> { /* private fields */ }Expand description
Shows a column of line numbers beside the File
This can be configured through LineNumbers::cfg, in order to
get, for example: relative numbering, different alignment,
hidden/shown wrapped lines, etc.
Implementations§
Source§impl<U: Ui> LineNumbers<U>
impl<U: Ui> LineNumbers<U>
Sourcepub fn options(&self) -> &LineNumbersOptions<U>
pub fn options(&self) -> &LineNumbersOptions<U>
The options for these LineNumbers
Sourcepub fn options_mut(&mut self) -> &mut LineNumbersOptions<U>
pub fn options_mut(&mut self) -> &mut LineNumbersOptions<U>
The mutable options for these LineNumbers
Trait Implementations§
Source§impl<U: Ui> Widget<U> for LineNumbers<U>
impl<U: Ui> Widget<U> for LineNumbers<U>
Source§fn once() -> Result<(), Text>
fn once() -> Result<(), Text>
Actions taken when this widget opens for the first time Read more
Source§fn on_focus(pa: &mut Pass, handle: Handle<Self, U>)where
Self: Sized,
fn on_focus(pa: &mut Pass, handle: Handle<Self, U>)where
Self: Sized,
Actions to do whenever this
Widget is focusedAuto Trait Implementations§
impl<U> !Freeze for LineNumbers<U>
impl<U> !RefUnwindSafe for LineNumbers<U>
impl<U> !Send for LineNumbers<U>
impl<U> !Sync for LineNumbers<U>
impl<U> Unpin for LineNumbers<U>
impl<U> !UnwindSafe for LineNumbers<U>
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