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§
Sourcefn from_subcommand(name: &str, matches: Option<&ArgMatches>) -> Option<Self>
fn from_subcommand(name: &str, matches: Option<&ArgMatches>) -> Option<Self>
@TODO @release @docs
Sourcefn augment_subcommands(app: App<'_>) -> App<'_>
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.