pub trait Addon {
// Required methods
fn model(&mut self, name: &str) -> Box<dyn Model>;
fn title(&mut self) -> &'static str;
fn name(&mut self) -> &'static str;
// Provided methods
fn sort(&mut self) -> usize { ... }
fn describe(&mut self) -> &'static str { ... }
fn icon(&mut self) -> &'static str { ... }
fn mode(&mut self) -> Vec<&'static str> { ... }
}Expand description
插件