Trait legion::storage::ArchetypeSource[][src]

pub trait ArchetypeSource {
    type Filter: LayoutFilter;
    fn filter(&self) -> Self::Filter;
fn layout(&mut self) -> EntityLayout; }
Expand description

Defines a type which can describe the layout of an archetype.

Associated Types

A filter which finds existing archetypes which match the layout.

Required methods

Returns the archetype source’s filter.

Constructs a new entity layout.

Implementors