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
impl Copy for CommandLineFlag
Sourceยงimpl Debug for CommandLineFlag
impl Debug for CommandLineFlag
impl Eq 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 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 UnsafeUnpin 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