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);