pub struct NlConfig {
pub body_style: NumberingStyle,
pub header_style: NumberingStyle,
pub footer_style: NumberingStyle,
pub section_delimiter: Vec<u8>,
pub line_increment: i64,
pub join_blank_lines: usize,
pub number_format: NumberFormat,
pub no_renumber: bool,
pub number_separator: Vec<u8>,
pub starting_line_number: i64,
pub number_width: usize,
}Expand description
Configuration for the nl command.
Fields§
§body_style: NumberingStyle§header_style: NumberingStyle§section_delimiter: Vec<u8>§line_increment: i64§join_blank_lines: usize§number_format: NumberFormat§no_renumber: bool§number_separator: Vec<u8>§starting_line_number: i64§number_width: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for NlConfig
impl RefUnwindSafe for NlConfig
impl Send for NlConfig
impl Sync for NlConfig
impl Unpin for NlConfig
impl UnsafeUnpin for NlConfig
impl UnwindSafe for NlConfig
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> 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