ComponentSource

Trait ComponentSource 

Source
pub trait ComponentSource: ArchetypeSource {
    // Required method
    fn push_components<'a>(
        &mut self,
        writer: &mut ArchetypeWriter<'a>,
        entities: impl Iterator<Item = Entity>,
    );
}
Expand description

Describes a type which can write entity components into a world.

Required Methods§

Source

fn push_components<'a>( &mut self, writer: &mut ArchetypeWriter<'a>, entities: impl Iterator<Item = Entity>, )

Writes components for new entities into an archetype.

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§