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