Trait Subcommand

Source
pub trait Subcommand: Sized {
    // Required methods
    fn from_subcommand(name: &str, matches: Option<&ArgMatches>) -> Option<Self>;
    fn augment_subcommands(app: App<'_>) -> App<'_>;
}
Expand description

@TODO @release @docs

Required Methods§

Source

fn from_subcommand(name: &str, matches: Option<&ArgMatches>) -> Option<Self>

@TODO @release @docs

Source

fn augment_subcommands(app: App<'_>) -> App<'_>

@TODO @release @docs

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: Subcommand> Subcommand for Box<T>

Source§

fn from_subcommand(name: &str, matches: Option<&ArgMatches>) -> Option<Self>

Source§

fn augment_subcommands(app: App<'_>) -> App<'_>

Implementors§