pub struct App {
pub name: &'static str,
pub about: Option<&'static str>,
pub category: Option<&'static str>,
/* private fields */
}Fields§
§name: &'static str§about: Option<&'static str>§category: Option<&'static str>Implementations§
Source§impl App
impl App
pub fn new(name: &'static str) -> Self
pub fn about(self, about: &'static str) -> Self
pub fn category(self, category: &'static str) -> Self
pub fn arg(self, arg: Arg) -> Self
pub fn subcommand(self, sub: App) -> Self
pub fn args(&self) -> impl Iterator<Item = &Arg>
pub fn find_subcommand(&self, name: &str) -> Option<&App>
pub fn print_help(&self)
pub fn print_help_with_parents(&self, parents: &[&'static str])
pub fn parse(self) -> Matches
pub fn parse_args(self, argv: &[&str]) -> Matches
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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