pub trait Method<T> {
// Required method
fn dispatch(&self, object: &T, parameters: &[Parameter]) -> ReturnResult;
}Expand description
Any type that implements the Method trait can be added as an immutable method to an ObjectType
Required Methods§
Sourcefn dispatch(&self, object: &T, parameters: &[Parameter]) -> ReturnResult
fn dispatch(&self, object: &T, parameters: &[Parameter]) -> ReturnResult
The dispatch method provides the functionality that is execuated when an associated method on an object is called