Trait WorldExt

Source
pub trait WorldExt {
    // Required method
    fn register_tile_comp<C, I>(&mut self)
       where C: Component + Send + Sync,
             C::Storage: Default,
             I: Id;
}
Expand description

An extension trait for registering statically managed component storages.

Required Methods§

Source

fn register_tile_comp<C, I>(&mut self)
where C: Component + Send + Sync, C::Storage: Default, I: Id,

Registers a specs_static::Storage for the components of type C. This will be done automatically if your storage has a Default and you’re fetching it with Read / Write.

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 WorldExt for World

Source§

fn register_tile_comp<C, I>(&mut self)
where C: Component + Send + Sync, C::Storage: Default, I: Id,

Implementors§