pub trait FunctionTrait {
// Required methods
fn doc(&self) -> &str;
fn args(&self) -> Vec<Arg>;
// Provided method
fn documentation(&self, name: &FunctionId) -> String { ... }
}Expand description
Trait for functions
Required Methods§
Provided Methods§
Sourcefn documentation(&self, name: &FunctionId) -> String
fn documentation(&self, name: &FunctionId) -> String
Creates the description for the function