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§
Required Methods§
Sourcefn commands_observed(
&self,
commands: &Self::Commands,
) -> Vec<CommandDescription>
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".