pub struct VecComponentStorage<T: Component> { /* private fields */ }Trait Implementations§
Source§impl<T: Component> ComponentStorage<T> for VecComponentStorage<T>
impl<T: Component> ComponentStorage<T> for VecComponentStorage<T>
fn new() -> Self
fn allocate(&mut self, entity: &EntityHandle, data: T)
fn free(&mut self, entity: &EntityHandle)
fn free_if_exists(&mut self, entity: &EntityHandle)
fn get(&self, entity: &EntityHandle) -> Option<&T>
fn get_mut(&mut self, entity: &EntityHandle) -> Option<&mut T>
Auto Trait Implementations§
impl<T> Freeze for VecComponentStorage<T>
impl<T> RefUnwindSafe for VecComponentStorage<T>where
T: RefUnwindSafe,
impl<T> Send for VecComponentStorage<T>
impl<T> Sync for VecComponentStorage<T>
impl<T> Unpin for VecComponentStorage<T>where
T: Unpin,
impl<T> UnwindSafe for VecComponentStorage<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more