Skip to main content

CliCommandsObserved

Trait CliCommandsObserved 

Source
pub trait CliCommandsObserved {
    type Commands;

    // Required method
    fn commands_observed(
        &self,
        commands: &Self::Commands,
    ) -> Vec<CommandDescription>;
}
Expand description

Observes a command collection as the commands it describes, in order.

Required Associated Types§

Source

type Commands

The collection observed.

Required Methods§

Source

fn commands_observed( &self, commands: &Self::Commands, ) -> Vec<CommandDescription>

Returns every command the collection describes, in order.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§