Struct amethyst::ecs::storage::VacantEntry [−]
pub struct VacantEntry<'a, 'b, T, D> where
'b: 'a,
D: 'a,
T: 'a, { /* fields omitted */ }An entry to a storage which does not have a component associated to the entity.
Methods
impl<'a, 'b, T, D> VacantEntry<'a, 'b, T, D> where
D: DerefMut<Target = MaskedStorage<T>>,
T: Component,
impl<'a, 'b, T, D> VacantEntry<'a, 'b, T, D> where
D: DerefMut<Target = MaskedStorage<T>>,
T: Component, ⓘImportant traits for &'a mut Rpub fn insert(self, component: T) -> &'a mut T
ⓘImportant traits for &'a mut R
pub fn insert(self, component: T) -> &'a mut TInserts a value into the storage.
Auto Trait Implementations
impl<'a, 'b, T, D> Send for VacantEntry<'a, 'b, T, D> where
D: Send,
T: Send,
impl<'a, 'b, T, D> Send for VacantEntry<'a, 'b, T, D> where
D: Send,
T: Send, impl<'a, 'b, T, D> Sync for VacantEntry<'a, 'b, T, D> where
D: Sync,
T: Sync,
impl<'a, 'b, T, D> Sync for VacantEntry<'a, 'b, T, D> where
D: Sync,
T: Sync,