pub trait YoleckComponent:
Default
+ Clone
+ PartialEq
+ Component<Mutability = Mutable>
+ Serialize
+ for<'a> Deserialize<'a> {
const KEY: &'static str;
}
Expand description
A component that Yoleck will write to and read from .yol
files.
Rather than being used for general ECS behavior definition, YoleckComponent
s should be used
for spawning the actual components using populate
systems.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.