pub enum Opt<'a> {
Short(char),
Long(&'a str),
LongWithArg(&'a str, &'a str),
Free(&'a str),
}Expand description
Represents an option parsed from a Parser
Variants§
Short(char)
Short option, e.g. -o
Long(&'a str)
Long option, e.g. --option
LongWithArg(&'a str, &'a str)
Long option with argument, e.g. --option=value
Free(&'a str)
Free argument
Trait Implementations§
impl<'a> Copy for Opt<'a>
impl<'a> Eq for Opt<'a>
impl<'a> StructuralPartialEq for Opt<'a>
Auto Trait Implementations§
impl<'a> Freeze for Opt<'a>
impl<'a> RefUnwindSafe for Opt<'a>
impl<'a> Send for Opt<'a>
impl<'a> Sync for Opt<'a>
impl<'a> Unpin for Opt<'a>
impl<'a> UnwindSafe for Opt<'a>
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