1 2 3 4 5 6 7 8 9 10
pub trait PluginInformation { fn name(&self) -> String; fn get_instance(&self) -> Box<SayHello>; } pub trait SayHello { fn say_hello(&self) -> String; }
1 2 3 4 5 6 7 8 9 10
pub trait PluginInformation { fn name(&self) -> String; fn get_instance(&self) -> Box<SayHello>; } pub trait SayHello { fn say_hello(&self) -> String; }