Struct specs::storage::VacantEntry [−][src]
pub struct VacantEntry<'a, 'b: 'a, T: 'a, D: '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
T: Component,
D: DerefMut<Target = MaskedStorage<T>>,
[src]
impl<'a, 'b, T, D> VacantEntry<'a, 'b, T, D> where
T: Component,
D: DerefMut<Target = MaskedStorage<T>>,
ⓘImportant traits for &'a mut Rpub fn insert(self, component: T) -> &'a mut T
[src]
ⓘImportant traits for &'a mut R
pub fn insert(self, component: T) -> &'a mut T
Inserts 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,