pub enum Argument<'a> {
Single(SingleArgument<'a>),
Variadic(VariadicArgument<'a>),
}
Expand description
Parses an argument. Ex: double v1|double... v1s
Variants§
Single(SingleArgument<'a>)
Variadic(VariadicArgument<'a>)
Trait Implementations§
Source§impl<'a> From<SingleArgument<'a>> for Argument<'a>
impl<'a> From<SingleArgument<'a>> for Argument<'a>
Source§fn from(x: SingleArgument<'a>) -> Self
fn from(x: SingleArgument<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<VariadicArgument<'a>> for Argument<'a>
impl<'a> From<VariadicArgument<'a>> for Argument<'a>
Source§fn from(x: VariadicArgument<'a>) -> Self
fn from(x: VariadicArgument<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Ord for Argument<'a>
impl<'a> Ord for Argument<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Argument<'a>
impl<'a> PartialOrd for Argument<'a>
impl<'a> Eq for Argument<'a>
impl<'a> StructuralPartialEq for Argument<'a>
Auto Trait Implementations§
impl<'a> Freeze for Argument<'a>
impl<'a> RefUnwindSafe for Argument<'a>
impl<'a> Send for Argument<'a>
impl<'a> Sync for Argument<'a>
impl<'a> Unpin for Argument<'a>
impl<'a> UnwindSafe for Argument<'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