pub trait ShellFunctionInfo {
// Required methods
fn doc_comments(&self) -> &Vec<String>;
fn name(&self) -> String;
// Provided method
fn usage(&self) -> String { ... }
}Expand description
Common properties for Rust functions exported as shell builtins.
Required Methods§
Sourcefn doc_comments(&self) -> &Vec<String>
fn doc_comments(&self) -> &Vec<String>
Rust documentation comments of the fn.