[][src]Struct clap_nested::Commander

pub struct Commander<'a, S: ?Sized, T: ?Sized> { /* fields omitted */ }

Define a group of subcommands to be run directly, or converted as a whole into a higher-order command

Methods

impl<'a, S: ?Sized> Commander<'a, S, S>[src]

pub fn new() -> Self[src]

impl<'a, S: ?Sized, T: ?Sized> Commander<'a, S, T>[src]

pub fn options(
    self,
    opts: impl for<'x, 'y> Fn(App<'x, 'y>) -> App<'x, 'y> + 'a
) -> Self
[src]

pub fn args<U: ?Sized>(
    self,
    args: impl for<'x> Fn(&'x S, &'x ArgMatches) -> &'x U + 'a
) -> Commander<'a, S, U>
[src]

pub fn add_cmd(self, cmd: impl CommandLike<T> + 'a) -> Self[src]

pub fn no_cmd(
    self,
    no_cmd: impl Fn(&T, &ArgMatches) -> StdResult<(), ClapError> + 'a
) -> Self
[src]

pub fn into_cmd(self, name: &'a str) -> MultiCommand<'a, S, T>[src]

impl<'a, T: ?Sized> Commander<'a, (), T>[src]

pub fn run(&self) -> StdResult<(), ClapError>[src]

pub fn run_with_args(
    &self,
    args: impl IntoIterator<Item = impl Into<OsString> + Clone>
) -> StdResult<(), ClapError>
[src]

Auto Trait Implementations

impl<'a, S, T> !Send for Commander<'a, S, T>

impl<'a, S: ?Sized, T: ?Sized> Unpin for Commander<'a, S, T>

impl<'a, S, T> !Sync for Commander<'a, S, T>

impl<'a, S, T> !UnwindSafe for Commander<'a, S, T>

impl<'a, S, T> !RefUnwindSafe for Commander<'a, S, T>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]