pub struct Arguments { /* private fields */ }Expand description
Parsed Arguments
Implementations§
Source§impl Arguments
impl Arguments
Sourcepub fn parse<S: AsRef<str>>(args: &[S]) -> Arguments
pub fn parse<S: AsRef<str>>(args: &[S]) -> Arguments
Parse arguments. This cannot fail. Arguments are simply
denoted by a single - followed by the argument,
and the value is immediately after. Multiple instances
can be contained, and arguments can contain no value
§Arguments
args: The arguments
Sourcepub fn contains_val(&self, key: &str) -> bool
pub fn contains_val(&self, key: &str) -> bool
Checks whether or not an argument is present in the list with a non-empty value
§Arguments
key: The key to check
Auto Trait Implementations§
impl Freeze for Arguments
impl RefUnwindSafe for Arguments
impl Send for Arguments
impl Sync for Arguments
impl Unpin for Arguments
impl UnwindSafe for Arguments
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