Archetype

Trait Archetype 

Source
pub trait Archetype {
    // Required methods
    fn store(self, container: &mut Container);
    fn map(container: &mut Container);
}
Expand description

Trait definition of Entities with the same set of components

Required Methods§

Source

fn store(self, container: &mut Container)

Source

fn map(container: &mut Container)

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.

Implementations on Foreign Types§

Source§

impl<A, B, C, D> Archetype for (A, B, C, D)
where A: Component, B: Component, C: Component, D: Component,

Source§

fn store(self, container: &mut Container)

Source§

fn map(container: &mut Container)

Source§

impl<B, C, D> Archetype for (B, C, D)
where B: Component, C: Component, D: Component,

Source§

fn store(self, container: &mut Container)

Source§

fn map(container: &mut Container)

Source§

impl<C, D> Archetype for (C, D)
where C: Component, D: Component,

Source§

fn store(self, container: &mut Container)

Source§

fn map(container: &mut Container)

Source§

impl<D> Archetype for (D,)
where D: Component,

Source§

fn store(self, container: &mut Container)

Source§

fn map(container: &mut Container)

Implementors§