pub trait ComponentSource: ComponentLayout {
// Required methods
fn is_empty(&mut self) -> bool;
fn len(&self) -> usize;
fn write<T: Iterator<Item = Entity>>(
&mut self,
entities: T,
chunk: &mut ComponentStorage,
) -> usize;
}Expand description
A set of components to be attached to one or more entities.
Required Methods§
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.