Skip to main content

DeclarationCommand

Trait DeclarationCommand 

Source
pub trait DeclarationCommand: Command {
    // Required method
    fn set_declarations(&mut self, declarations: Vec<CommandArg>);
}
Expand description

Trait implemented by built-in shell commands that take specially handled declarations as arguments.

Required Methods§

Source

fn set_declarations(&mut self, declarations: Vec<CommandArg>)

Stores the declarations within the command instance.

§Arguments
  • declarations - The declarations to store.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§