EcsData

Trait EcsData 

Source
pub trait EcsData:
    Clone
    + Sync
    + Send
    + 'static { }
Expand description

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

Examples of untyped storage are UntypedResources and UntypedComponentStore.

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> EcsData for T
where T: Clone + Sync + Send + 'static,