pub struct Parser<'a, S: 'a> { /* private fields */ }
Expand description
Parses options from a series of &str
-like values.
Implementations
sourceimpl<'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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more