[][src]Trait legion::SharedDataSet

pub trait SharedDataSet {
    fn is_archetype_match(&self, archetype: &Archetype) -> bool;
fn is_chunk_match(&self, chunk: &Chunk) -> bool;
fn configure_chunk(&self, chunk: &mut ChunkBuilder);
fn types(&self) -> FnvHashSet<TypeId>; }

Inserts shared data into a Chunk in a World.

Required methods

fn is_archetype_match(&self, archetype: &Archetype) -> bool

Determines if the given archetype is compatible with the data contained in the data set.

fn is_chunk_match(&self, chunk: &Chunk) -> bool

Determines if the given chunk is compatible with the data contained in the data set.

fn configure_chunk(&self, chunk: &mut ChunkBuilder)

Configures a new chunk to include the shared data in this data set.

fn types(&self) -> FnvHashSet<TypeId>

Gets the type of shared data contained in this data set.

Loading content...

Implementations on Foreign Types

impl SharedDataSet for ()[src]

impl<A> SharedDataSet for (A,) where
    A: SharedData
[src]

impl<A, B> SharedDataSet for (A, B) where
    A: SharedData,
    B: SharedData
[src]

impl<A, B, C> SharedDataSet for (A, B, C) where
    A: SharedData,
    B: SharedData,
    C: SharedData
[src]

impl<A, B, C, D> SharedDataSet for (A, B, C, D) where
    A: SharedData,
    B: SharedData,
    C: SharedData,
    D: SharedData
[src]

impl<A, B, C, D, E> SharedDataSet for (A, B, C, D, E) where
    A: SharedData,
    B: SharedData,
    C: SharedData,
    D: SharedData,
    E: SharedData
[src]

Loading content...

Implementors

Loading content...