pub struct ArgParser { /* private fields */ }
Implementations§
Source§impl ArgParser
impl ArgParser
pub fn new() -> Self
pub fn arg(self, name: &str) -> Self
pub fn short(self, name: &str, short: char) -> Self
pub fn long(self, name: &str, long: &str) -> Self
pub fn takes_value(self, name: &str) -> Self
pub fn required(self, name: &str) -> Self
pub fn default(self, name: &str, default: &str) -> Self
pub fn validator<F>(self, name: &str, validator: F) -> Self
pub fn subcommand(self, name: &str, parser: ArgParser) -> Self
pub fn parse(self, args: &[String]) -> ArgMatches
Auto Trait Implementations§
impl Freeze for ArgParser
impl !RefUnwindSafe for ArgParser
impl Send for ArgParser
impl Sync for ArgParser
impl Unpin for ArgParser
impl !UnwindSafe for ArgParser
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