BuildStorage

Trait BuildStorage 

Source
pub trait BuildStorage {
    // Required method
    fn build<S: Storage + RegisterComponent>(id: StorageId) -> EmptyStorage<S>;
}
Expand description

BuildStorage is used to create different Storages at runtime. See also AppendComponents and World::append_components

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.

Implementations on Foreign Types§

Source§

impl<A> BuildStorage for (A,)
where A: Component,

Source§

impl<A, B> BuildStorage for (A, B)
where A: Component, B: Component,

Source§

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

Source§

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

Source§

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

Source§

impl<A, B, C, D, E, F> BuildStorage for (A, B, C, D, E, F)

Source§

impl<A, B, C, D, E, F, G> BuildStorage for (A, B, C, D, E, F, G)

Source§

impl<A, B, C, D, E, F, G, H> BuildStorage for (A, B, C, D, E, F, G, H)

Implementors§