pub struct ParsedArgs { /* private fields */ }Expand description
The result of parsing one command level. Values are kept as strings (the derive macro performs typed conversion); repeatable options accumulate.
Implementations§
Source§impl ParsedArgs
impl ParsedArgs
pub fn has_flag(&self, name: &str) -> bool
pub fn positionals(&self) -> &[String]
pub fn subcommand(&self) -> Option<(&str, &ParsedArgs)>
Trait Implementations§
Source§impl Clone for ParsedArgs
impl Clone for ParsedArgs
Source§fn clone(&self) -> ParsedArgs
fn clone(&self) -> ParsedArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedArgs
impl Debug for ParsedArgs
Source§impl Default for ParsedArgs
impl Default for ParsedArgs
Source§fn default() -> ParsedArgs
fn default() -> ParsedArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedArgs
impl RefUnwindSafe for ParsedArgs
impl Send for ParsedArgs
impl Sync for ParsedArgs
impl Unpin for ParsedArgs
impl UnsafeUnpin for ParsedArgs
impl UnwindSafe for ParsedArgs
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