TypedEcsData

Trait TypedEcsData 

Source
pub trait TypedEcsData: TypeUlid + EcsData { }
Expand description

Helper trait that is auto-implemented for anything that may be stored in the ECS’s typed storage.

Examples of typed storage are Resources<T> and ComponentStore<T>.

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.

Implementors§

Source§

impl<T> TypedEcsData for T
where T: TypeUlid + EcsData,