Struct rat_widget::line_number::LineNumberStyle
source · pub struct LineNumberStyle {
pub flag_width: Option<u16>,
pub margin: Option<(u16, u16)>,
pub format: Option<NumberFormat>,
pub style: Style,
pub cursor_style: Option<Style>,
pub block: Option<Block<'static>>,
pub non_exhaustive: NonExhaustive,
}Expand description
Styles as a package.
Fields§
§flag_width: Option<u16>§margin: Option<(u16, u16)>§format: Option<NumberFormat>§style: Style§cursor_style: Option<Style>§block: Option<Block<'static>>§non_exhaustive: NonExhaustiveTrait Implementations§
source§impl Clone for LineNumberStyle
impl Clone for LineNumberStyle
source§fn clone(&self) -> LineNumberStyle
fn clone(&self) -> LineNumberStyle
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 Debug for LineNumberStyle
impl Debug for LineNumberStyle
source§impl Default for LineNumberStyle
impl Default for LineNumberStyle
source§fn default() -> LineNumberStyle
fn default() -> LineNumberStyle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LineNumberStyle
impl RefUnwindSafe for LineNumberStyle
impl Send for LineNumberStyle
impl Sync for LineNumberStyle
impl Unpin for LineNumberStyle
impl UnwindSafe for LineNumberStyle
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