1 2 3 4 5 6 7 8 9 10 11 12 13
//! Name of a struct or type // TODO: replace with bevy TypePath? that would mean that we: // - derive Reflect for Messages // - require to derive Reflect for Components ? pub trait TypeNamed { fn name() -> String; } pub trait Named { fn name(&self) -> String; }