macro_rules! register_type {
($type:ty) => { ... };
}Expand description
Use this for all trait and object types used within components.
ยงExamples
#![feature(lazy_cell)]
use gear_objects::*;
use paste::paste;
trait Fruit {
fn eat(&self) -> String;
}
register_type!(Fruit);