Trait AddCommand

Source
pub trait AddCommand {
    // Required method
    fn add_command<T: Command + Send + Sync + 'static>(&mut self) -> &mut Self;
}

Required Methods§

Source

fn add_command<T: Command + Send + Sync + 'static>(&mut self) -> &mut Self

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 AddCommand for App

Source§

fn add_command<T: Command + Send + Sync + 'static>(&mut self) -> &mut Self

Implementors§