pub enum Arg<'a> {
Named(&'a str, Values<'a>),
Positional(&'a str),
}Expand description
Defines an argument on the command line.
Variants§
Named(&'a str, Values<'a>)
A named argument, which is defined by a flag, and zero or more values.
Positional(&'a str)
A positional argument, which is defined by its value.
Trait Implementations§
impl<'a> StructuralPartialEq for Arg<'a>
Auto Trait Implementations§
impl<'a> Freeze for Arg<'a>
impl<'a> RefUnwindSafe for Arg<'a>
impl<'a> Send for Arg<'a>
impl<'a> Sync for Arg<'a>
impl<'a> Unpin for Arg<'a>
impl<'a> UnwindSafe for Arg<'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