Struct specs::storage::OccupiedEntry [−][src]
pub struct OccupiedEntry<'a, 'b: 'a, T: 'a, D: 'a> { /* fields omitted */ }
Expand description
An entry to a storage which has a component associated to the entity.
Implementations
impl<'a, 'b, T, D> OccupiedEntry<'a, 'b, T, D> where
T: Component,
D: Deref<Target = MaskedStorage<T>>,
[src]
impl<'a, 'b, T, D> OccupiedEntry<'a, 'b, T, D> where
T: Component,
D: Deref<Target = MaskedStorage<T>>,
[src]impl<'a, 'b, T, D> OccupiedEntry<'a, 'b, T, D> where
T: Component,
D: DerefMut<Target = MaskedStorage<T>>,
[src]
impl<'a, 'b, T, D> OccupiedEntry<'a, 'b, T, D> where
T: Component,
D: DerefMut<Target = MaskedStorage<T>>,
[src]Get a mutable reference to the component associated with the entity.
Converts the OccupiedEntry
into a mutable reference bounded by
the storage’s lifetime.
Inserts a value into the storage and returns the old one.
Auto Trait Implementations
impl<'a, 'b, T, D> !RefUnwindSafe for OccupiedEntry<'a, 'b, T, D>
impl<'a, 'b, T, D> Send for OccupiedEntry<'a, 'b, T, D> where
D: Send,
T: Send,
impl<'a, 'b, T, D> Sync for OccupiedEntry<'a, 'b, T, D> where
D: Sync,
T: Sync,
impl<'a, 'b, T, D> Unpin for OccupiedEntry<'a, 'b, T, D> where
'b: 'a,
impl<'a, 'b, T, D> !UnwindSafe for OccupiedEntry<'a, 'b, T, D>