pub struct Parser<'a, S: 'a> { /* private fields */ }Expand description
Parses options from a series of &str-like values.
Implementations§
Source§impl<'a, S: 'a + AsRef<str>> Parser<'a, S>
impl<'a, S: 'a + AsRef<str>> Parser<'a, S>
Sourcepub fn new(args: &'a [S], style: ParsingStyle) -> Parser<'a, S>
pub fn new(args: &'a [S], style: ParsingStyle) -> Parser<'a, S>
Returns a new parser for the given series of arguments.
The given slice should not contain the program name as its first element.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for Parser<'a, S>
impl<'a, S> RefUnwindSafe for Parser<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Parser<'a, S>where
S: Sync,
impl<'a, S> Sync for Parser<'a, S>where
S: Sync,
impl<'a, S> Unpin for Parser<'a, S>
impl<'a, S> UnwindSafe for Parser<'a, S>where
S: RefUnwindSafe,
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