pub struct ParsedCli { /* private fields */ }Implementations§
Source§impl ParsedCli
impl ParsedCli
pub fn command_path(&self) -> &[String]
pub fn options(&self) -> &[ParsedOption]
pub fn positionals(&self) -> &[String]
pub fn passthrough(&self) -> &[String]
pub fn has_flag(&self, name: &str) -> bool
pub fn option_value(&self, name: &str) -> Option<&str>
pub fn option_values<'b>( &'b self, name: &'b str, ) -> impl Iterator<Item = &'b str> + 'b
pub fn option_occurrences(&self, name: &str) -> usize
Trait Implementations§
impl Eq for ParsedCli
impl StructuralPartialEq for ParsedCli
Auto Trait Implementations§
impl Freeze for ParsedCli
impl RefUnwindSafe for ParsedCli
impl Send for ParsedCli
impl Sync for ParsedCli
impl Unpin for ParsedCli
impl UnsafeUnpin for ParsedCli
impl UnwindSafe for ParsedCli
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