pub struct ParsedArg<'s> { /* private fields */ }
Expand description
Command-line Argument
Implementations§
source§impl<'s> ParsedArg<'s>
impl<'s> ParsedArg<'s>
sourcepub fn to_long(&self) -> Option<(Result<&str, &RawOsStr>, Option<&RawOsStr>)>
pub fn to_long(&self) -> Option<(Result<&str, &RawOsStr>, Option<&RawOsStr>)>
Treat as a long-flag
sourcepub fn to_short(&self) -> Option<ShortFlags<'_>>
pub fn to_short(&self) -> Option<ShortFlags<'_>>
Treat as a short-flag
sourcepub fn to_value_os(&self) -> &RawOsStr
pub fn to_value_os(&self) -> &RawOsStr
Treat as a value
NOTE: May return a flag or an escape.
Trait Implementations§
source§impl<'s> Ord for ParsedArg<'s>
impl<'s> Ord for ParsedArg<'s>
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<'s> PartialEq<ParsedArg<'s>> for ParsedArg<'s>
impl<'s> PartialEq<ParsedArg<'s>> for ParsedArg<'s>
source§impl<'s> PartialOrd<ParsedArg<'s>> for ParsedArg<'s>
impl<'s> PartialOrd<ParsedArg<'s>> for ParsedArg<'s>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more