pub struct OptionParser;Expand description
Hand-rolled tokenizer. Translates a flat argv slice into a ParseResult
guided by the schema.
Implementations§
Source§impl OptionParser
impl OptionParser
Sourcepub fn parse(schema: &CommandSchema, args: &[String]) -> Result<ParseResult>
pub fn parse(schema: &CommandSchema, args: &[String]) -> Result<ParseResult>
Parse args against schema, producing a ParseResult or an error.
Auto Trait Implementations§
impl Freeze for OptionParser
impl RefUnwindSafe for OptionParser
impl Send for OptionParser
impl Sync for OptionParser
impl Unpin for OptionParser
impl UnsafeUnpin for OptionParser
impl UnwindSafe for OptionParser
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