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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".