pub trait Addon:
Send
+ Sync
+ 'static {
// Required methods
fn title(&self) -> &'static str;
fn module(&mut self, name: &str) -> Result<Box<dyn Module>, String>;
// Provided methods
fn name(&self) -> &'static str { ... }
fn icon(&self) -> &'static str { ... }
fn description(&self) -> &'static str { ... }
fn pages(&self) -> &'static str { ... }
fn sort(&self) -> usize { ... }
fn category(&self) -> &'static str { ... }
fn tools(&mut self) -> Tools { ... }
}Expand description
插件接口
Required Methods§
Provided Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
功能描述