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 methods
    fn _name(&self) -> String { ... }
    fn icon(&self) -> &'static str { ... }
    fn description(&self) -> &'static str { ... }
    fn pages(&self) -> &'static str { ... }
    fn sort(&self) -> usize { ... }
    fn tools(&mut self) -> Tools { ... }
}
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

插件名称

Source

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

插件图标

Source

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

功能描述

Source

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

前端指定页面

Source

fn sort(&self) -> usize

Source

fn tools(&mut self) -> Tools

使用工具

Implementors§