pub struct Matches { /* private fields */ }Implementations§
Source§impl Matches
impl Matches
pub fn new( exec_name: String, positional: Vec<String>, named: HashMap<String, Value>, ) -> Self
pub fn flag(&self, name: &str) -> Result<Option<bool>, ValueError>
pub fn one<T: FromStr>(&self, name: &str) -> Result<Option<T>, ValueError>
pub fn all<T: FromStr>(&self, name: &str) -> Result<Vec<T>, ValueError>
pub fn positional(&self) -> &[String]
Trait Implementations§
impl StructuralPartialEq for Matches
Auto Trait Implementations§
impl Freeze for Matches
impl RefUnwindSafe for Matches
impl Send for Matches
impl Sync for Matches
impl Unpin for Matches
impl UnwindSafe for Matches
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