pub enum CommandLineFlag {
A,
E,
L,
N,
P,
X,
}Expand description
A command line option that affects parsing behavior.
Variants§
A
-a: splits the input line $_ into $F.
E
-e: specifies a script to be executed.
L
-l: chomps the input line by default.
N
-n: wraps the script in a while gets loop.
P
-p: prints the value of $_ at the end of each loop.
X
-x: searches the input file for a shebang.
Trait Implementations§
Source§impl Clone for CommandLineFlag
impl Clone for CommandLineFlag
Source§fn clone(&self) -> CommandLineFlag
fn clone(&self) -> CommandLineFlag
Returns a duplicate 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 CommandLineFlag
impl Debug for CommandLineFlag
Source§impl From<CommandLineFlag> for u8
impl From<CommandLineFlag> for u8
Source§fn from(flag: CommandLineFlag) -> Self
fn from(flag: CommandLineFlag) -> Self
Converts to this type from the input type.
Source§impl Hash for CommandLineFlag
impl Hash for CommandLineFlag
Source§impl PartialEq for CommandLineFlag
impl PartialEq for CommandLineFlag
impl Copy for CommandLineFlag
impl Eq for CommandLineFlag
impl StructuralPartialEq for CommandLineFlag
Auto Trait Implementations§
impl Freeze for CommandLineFlag
impl RefUnwindSafe for CommandLineFlag
impl Send for CommandLineFlag
impl Sync for CommandLineFlag
impl Unpin for CommandLineFlag
impl UnwindSafe for CommandLineFlag
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