pub enum Arg<'a, O: Default, P: Default> {
Binary(BinaryProperties<'a, O, P>),
Param(ParamProperties<'a, O, P>),
Option(OptionProperties<'a, O, P>),
}
Expand description
An enum with variants for the 3 different types of parsed arguments. Each variant has an associated struct which holds the properties for that type of argument.
The Parser’s parse functions will return an array of these variants, one for each argument parsed, if the parse operation was successful.
Variants
Binary(BinaryProperties<'a, O, P>)
The first argument which normally holds the binary/executable’s path or name.
Param(ParamProperties<'a, O, P>)
A parameter parsed argument.
Option(OptionProperties<'a, O, P>)
An option parsed argument.
Trait Implementations
Auto Trait Implementations
impl<'a, O, P> RefUnwindSafe for Arg<'a, O, P>where
O: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, O, P> Send for Arg<'a, O, P>where
O: Sync,
P: Sync,
impl<'a, O, P> Sync for Arg<'a, O, P>where
O: Sync,
P: Sync,
impl<'a, O, P> Unpin for Arg<'a, O, P>
impl<'a, O, P> UnwindSafe for Arg<'a, O, P>where
O: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more