Struct oxygengine_core::ecs::DefaultVecStorage [−][src]
pub struct DefaultVecStorage<T>(_);
Vector storage, like VecStorage
, but allows safe access to the
interior slices because unused slots are always initialized.
Requires the component to implement Default
.
as_slice()
and as_mut_slice()
indices correspond to entity IDs.
These can be compared to other DefaultVecStorage
s, to other
VecStorage
s, and to Entity::id()
s for live entities.
Trait Implementations
impl<T> Default for DefaultVecStorage<T>
[src]
impl<T> Default for DefaultVecStorage<T>
[src]pub fn default() -> DefaultVecStorage<T>
[src]
impl<T> DistinctStorage for DefaultVecStorage<T>
[src]
impl<T> DistinctStorage for DefaultVecStorage<T>
[src]impl<T> UnprotectedStorage<T> for DefaultVecStorage<T> where
T: Default,
[src]
impl<T> UnprotectedStorage<T> for DefaultVecStorage<T> where
T: Default,
[src]pub unsafe fn clean<B>(&mut self, _has: B) where
B: BitSetLike,
[src]
B: BitSetLike,
pub unsafe fn get(&self, id: u32) -> &T
[src]
pub unsafe fn get_mut(&mut self, id: u32) -> &mut T
[src]
pub unsafe fn insert(&mut self, id: u32, v: T)
[src]
pub unsafe fn remove(&mut self, id: u32) -> T
[src]
pub unsafe fn drop(&mut self, id: u32)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for DefaultVecStorage<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for DefaultVecStorage<T> where
T: RefUnwindSafe,
impl<T> Send for DefaultVecStorage<T> where
T: Send,
impl<T> Send for DefaultVecStorage<T> where
T: Send,
impl<T> Sync for DefaultVecStorage<T> where
T: Sync,
impl<T> Sync for DefaultVecStorage<T> where
T: Sync,
impl<T> Unpin for DefaultVecStorage<T> where
T: Unpin,
impl<T> Unpin for DefaultVecStorage<T> where
T: Unpin,
impl<T> UnwindSafe for DefaultVecStorage<T> where
T: UnwindSafe,
impl<T> UnwindSafe for DefaultVecStorage<T> where
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> TryDefault for T where
T: Default,
[src]
impl<T> TryDefault for T where
T: Default,
[src]