pub struct ArgSwitch {
pub number_nonblank: bool,
pub show_ends: bool,
pub number: bool,
pub squeeze_blank: bool,
pub show_tabs: bool,
pub u: bool,
pub show_nonprinting: bool,
}Expand description
Switches for the command line options. Example: catr -n example.txt will set number to true
Fields§
§number_nonblank: boolShow line numbers for non-blank lines only
show_ends: boolShow each line end with a $
number: boolShow line numbers for all lines
squeeze_blank: boolRemove duplicate blank lines (maximum 1 blank line)
show_tabs: boolShow tabs as ^I
u: boolIgnored
show_nonprinting: boolShow non-printable characters in ^ and M notation
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArgSwitch
impl RefUnwindSafe for ArgSwitch
impl Send for ArgSwitch
impl Sync for ArgSwitch
impl Unpin for ArgSwitch
impl UnwindSafe for ArgSwitch
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