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
Try 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
Try mutating the data associated with an entity. this is unsafe because the external set used to protect this storage is absent