br-addon 0.2.20

This is an addon
Documentation
use br_addon::addon::Addon;
use br_addon::module::Module;

#[derive(Debug, Clone)]
pub struct Dms {}

impl Addon for Dms {
    fn title(&self) -> &'static str {"数字测量"}
    fn icon(&self) -> &'static str {""}
    fn description(&self) -> &'static str {
        ""
    }
    fn sort(&self) -> usize {
        99
    }

    fn module(&mut self, name: &str) -> Result<Box<dyn Module>, String> {
        Ok(match name {
            "test" => Box::new( TestTest {}),
            _ => return Err(format!("not a module: {name}")),
        })
    }
}
mod dms;