Skip to main content

FunctionTrait

Trait FunctionTrait 

Source
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§

Source

fn doc(&self) -> &str

Documentation of the function

Source

fn args(&self) -> Vec<Arg>

Arguments to the function

Provided Methods§

Source

fn documentation(&self, name: &FunctionId) -> String

Creates the description for the function

Implementors§