br_addon::addon

Trait Addon

Source
pub trait Addon {
    // Required methods
    fn title(&self) -> &'static str;
    fn module(&mut self, name: &str) -> Result<Box<dyn Module>, String>;

    // Provided method
    fn name(&self) -> String { ... }
}
Expand description

插件接口

Required Methods§

Source

fn title(&self) -> &'static str

功能标题

Source

fn module(&mut self, name: &str) -> Result<Box<dyn Module>, String>

模型分流

Provided Methods§

Source

fn name(&self) -> String

插件名称

Implementors§