Trait specs::UnprotectedStorage [] [src]

pub trait UnprotectedStorage<T> {
    unsafe fn get(&self, id: Index) -> &T;
    unsafe fn get_mut(&mut self, id: Index) -> &mut T;
}

Used by the framework to quickly join componets

Required Methods

unsafe fn get(&self, id: Index) -> &T

Tries reading the data associated with an Entity. This is unsafe because the external set used to protect this storage is absent.

unsafe fn get_mut(&mut self, id: Index) -> &mut T

Tries mutating the data associated with an Entity. This is unsafe because the external set used to protect this storage is absent.

Implementors