azalea_brigadier::tree

Type Alias Command

Source
pub type Command<S> = Option<Arc<dyn Fn(&CommandContext<S>) -> i32 + Send + Sync>>;

Aliased Type§

enum Command<S> {
    None,
    Some(Arc<dyn Fn(&CommandContext<S>) -> i32 + Sync + Send>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Arc<dyn Fn(&CommandContext<S>) -> i32 + Sync + Send>)

Some value of type T.