Skip to main content

CommandParameter

Type Alias CommandParameter 

Source
pub type CommandParameter = Option<Rc<dyn Any>>;
Expand description

A command parameter (object?): the value the command is executed with, of any type, or none. A command receives it as Option<&dyn Any> (parameter.as_deref()).

Aliased Type§

pub enum CommandParameter {
    None,
    Some(Rc<dyn Any>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Rc<dyn Any>)

Some value of type T.