Trait EffectFunction
pub trait EffectFunction<T, M> {
// Required method
fn run(&mut self, p: Option<T>) -> T;
}
Expand description
Trait to enable effect functions that have zero or one parameter
pub trait EffectFunction<T, M> {
// Required method
fn run(&mut self, p: Option<T>) -> T;
}
Trait to enable effect functions that have zero or one parameter