Struct specs::storage::PairedStorage [−][src]
pub struct PairedStorage<'rf, 'st: 'rf, C, S, B, Restrict> { /* fields omitted */ }
Expand description
Pairs a storage with an index, meaning that the index is guaranteed to exist
as long as the PairedStorage<C, S>
exists.
Implementations
Gets the component related to the current entry without checking whether the storage has it or not.
Gets the component related to the current entry without checking whether the storage has it or not.
impl<'rf, 'st, C, S, B> PairedStorage<'rf, 'st, C, S, B, SequentialRestriction> where
C: Component,
S: BorrowMut<C::Storage>,
B: Borrow<BitSet>,
[src]
impl<'rf, 'st, C, S, B> PairedStorage<'rf, 'st, C, S, B, SequentialRestriction> where
C: Component,
S: BorrowMut<C::Storage>,
B: Borrow<BitSet>,
[src]Attempts to get the component related to the entity mutably.
Functions similar to the normal Storage::get_mut
implementation.
This only works if this is a non-parallel RestrictedStorage
,
otherwise you could access the same component mutably in two different
threads.
Auto Trait Implementations
impl<'rf, 'st, C, S, B, Restrict> !RefUnwindSafe for PairedStorage<'rf, 'st, C, S, B, Restrict>
impl<'rf, 'st, C, S, B, Restrict> Send for PairedStorage<'rf, 'st, C, S, B, Restrict> where
B: Send,
C: Send,
Restrict: Send,
S: Send,
impl<'rf, 'st, C, S, B, Restrict> Sync for PairedStorage<'rf, 'st, C, S, B, Restrict> where
B: Sync,
C: Sync,
Restrict: Sync,
S: Sync,
impl<'rf, 'st, C, S, B, Restrict> Unpin for PairedStorage<'rf, 'st, C, S, B, Restrict> where
B: Unpin,
C: Unpin,
Restrict: Unpin,
S: Unpin,
'st: 'rf,
impl<'rf, 'st, C, S, B, Restrict> !UnwindSafe for PairedStorage<'rf, 'st, C, S, B, Restrict>