Struct rin::ecs::Sto [−][src]
pub struct Sto<'a, S>(_, _)
where
S: UnorderedData<'a>;
Used as a argument in storages systems, wraps the storage for an operator or query
#[system_storages(name = "System")] fn system(mut pos: Sto<Write<Pos>>, vel: Sto<Read<Vel>>) { for (pos, vel) in (&mut pos, &vel).iter_mut(){ pos.0 += vel.0 } }
An Sto of any operator can be directly iterated calling iter on it or combined with other storages to iterate only over those entities that match the full query.
To combine bmore than one storage one can use a tuple of them or a tuple of references to them in case they’ll be used more than once. Write operators or tuple of operators need a mutable reference.
#[system_storages(name = "System")] fn system(mut pos: Sto<Write<Pos>>, vel: Sto<Read<Vel>>) { for (pos, vel) in (&mut pos, &vel).iter_mut(){ pos.0 += vel.0 } for pos in pos.iter_mut(){ // ... } }
Implementations
impl<'a, S> Sto<'a, S> where
S: UnorderedData<'a>,
[src]
impl<'a, S> Sto<'a, S> where
S: UnorderedData<'a>,
[src]impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
<S as UnorderedData<'a>>::Storage: ReadOnlyStorage,
[src]
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
<S as UnorderedData<'a>>::Storage: ReadOnlyStorage,
[src]pub fn get(
&'r self,
entity: &Entity
) -> Option<<<S as UnorderedData<'a>>::Storage as StorageRef<'r>>::Component>
[src]
&'r self,
entity: &Entity
) -> Option<<<S as UnorderedData<'a>>::Storage as StorageRef<'r>>::Component>
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
[src]
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
[src]pub fn get_mut(
&'r mut self,
entity: &Entity
) -> Option<<<S as UnorderedData<'a>>::Storage as StorageRef<'r>>::Component>
[src]
&'r mut self,
entity: &Entity
) -> Option<<<S as UnorderedData<'a>>::Storage as StorageRef<'r>>::Component>
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: OptionStorage<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
<<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage: ReadOnlyStorage,
[src]
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: OptionStorage<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
<<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage: ReadOnlyStorage,
[src]pub fn iter(
&'r self
) -> <<S as UnorderedData<'a>>::Storage as OptionStorage<'r>>::Iter
[src]
&'r self
) -> <<S as UnorderedData<'a>>::Storage as OptionStorage<'r>>::Iter
pub fn iter_for_entities<E>(
&'r self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesIter where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesIter where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
pub fn iter_for_entities_opt<E>(
&'r self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptIter where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptIter where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
pub fn as_send_storage(
&'r self
) -> SendSto<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage> where
<S as UnorderedData<'a>>::Storage: 'r,
[src]
&'r self
) -> SendSto<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage> where
<S as UnorderedData<'a>>::Storage: 'r,
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: OptionStorageMut<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
[src]
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: OptionStorageMut<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
[src]pub fn iter_mut(
&'r mut self
) -> <<S as UnorderedData<'a>>::Storage as OptionStorageMut<'r>>::IterMut
[src]
&'r mut self
) -> <<S as UnorderedData<'a>>::Storage as OptionStorageMut<'r>>::IterMut
pub fn iter_for_entities_mut<E>(
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesIterMut where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesIterMut where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
pub fn iter_for_entities_opt_mut<E>(
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptIterMut where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptIterMut where
E: IntoEntitiesIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
pub fn as_send_storage_mut(
&'r mut self
) -> SendSto<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage> where
<S as UnorderedData<'a>>::Storage: 'r,
[src]
&'r mut self
) -> SendSto<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage> where
<S as UnorderedData<'a>>::Storage: 'r,
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: ParOptionStorage<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
<<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage: ReadOnlyStorage,
[src]
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: ParOptionStorage<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
<<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage: ReadOnlyStorage,
[src]pub fn par_iter(
&'r self
) -> <<S as UnorderedData<'a>>::Storage as ParOptionStorage<'r>>::ParIter
[src]
&'r self
) -> <<S as UnorderedData<'a>>::Storage as ParOptionStorage<'r>>::ParIter
pub fn par_iter_for_entities<E>(
&'r self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesParIter where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesParIter where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
pub fn par_iter_for_entities_opt<E>(
&'r self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptParIter where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptParIter where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: ParOptionStorageMut<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
[src]
impl<'a, 'r, S> Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: ParOptionStorageMut<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
[src]pub fn par_iter_mut(
&'r mut self
) -> <<S as UnorderedData<'a>>::Storage as ParOptionStorageMut<'r>>::ParIterMut
[src]
&'r mut self
) -> <<S as UnorderedData<'a>>::Storage as ParOptionStorageMut<'r>>::ParIterMut
pub fn par_iter_for_entities_mut<E>(
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesParIterMut where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesParIterMut where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
pub fn par_iter_for_entities_opt_mut<E>(
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptParIterMut where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
[src]
&'r mut self,
entities_iter: E
) -> <E as IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>>::IntoEntitiesOptParIterMut where
E: IntoEntitiesParIterator<'r, <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage>,
Trait Implementations
impl<'a, U1, U2, U3, U4, U5, U6, U7, U8> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5, U6, U7, U8)> where
U8: UnorderedData<'a>,
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
U6: UnorderedData<'a>,
U7: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U6 as UnorderedData<'a>>::Storage: FastIndexExt,
<U6 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U7 as UnorderedData<'a>>::Storage: FastIndexExt,
<U7 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U8 as UnorderedData<'a>>::Storage: FastIndexExt,
<U8 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]
impl<'a, U1, U2, U3, U4, U5, U6, U7, U8> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5, U6, U7, U8)> where
U8: UnorderedData<'a>,
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
U6: UnorderedData<'a>,
U7: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U6 as UnorderedData<'a>>::Storage: FastIndexExt,
<U6 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U7 as UnorderedData<'a>>::Storage: FastIndexExt,
<U7 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U8 as UnorderedData<'a>>::Storage: FastIndexExt,
<U8 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]impl<'a, U1, U2, U3, U4, U5, U6> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5, U6)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
U6: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U6 as UnorderedData<'a>>::Storage: FastIndexExt,
<U6 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]
impl<'a, U1, U2, U3, U4, U5, U6> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5, U6)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
U6: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U6 as UnorderedData<'a>>::Storage: FastIndexExt,
<U6 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]impl<'a, U1, U2, U3, U4, U5> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]
impl<'a, U1, U2, U3, U4, U5> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]impl<'a, U1, U2> IntoStorages for Sto<'a, (U1, U2)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]
impl<'a, U1, U2> IntoStorages for Sto<'a, (U1, U2)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]impl<'a, U1, U2, U3, U4> IntoStorages for Sto<'a, (U1, U2, U3, U4)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]
impl<'a, U1, U2, U3, U4> IntoStorages for Sto<'a, (U1, U2, U3, U4)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]impl<'a, U1, U2, U3, U4, U5, U6, U7> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5, U6, U7)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
U6: UnorderedData<'a>,
U7: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U6 as UnorderedData<'a>>::Storage: FastIndexExt,
<U6 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U7 as UnorderedData<'a>>::Storage: FastIndexExt,
<U7 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]
impl<'a, U1, U2, U3, U4, U5, U6, U7> IntoStorages for Sto<'a, (U1, U2, U3, U4, U5, U6, U7)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
U4: UnorderedData<'a>,
U5: UnorderedData<'a>,
U6: UnorderedData<'a>,
U7: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U4 as UnorderedData<'a>>::Storage: FastIndexExt,
<U4 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U5 as UnorderedData<'a>>::Storage: FastIndexExt,
<U5 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U6 as UnorderedData<'a>>::Storage: FastIndexExt,
<U6 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U7 as UnorderedData<'a>>::Storage: FastIndexExt,
<U7 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]impl<'a, U1, U2, U3> IntoStorages for Sto<'a, (U1, U2, U3)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]
impl<'a, U1, U2, U3> IntoStorages for Sto<'a, (U1, U2, U3)> where
U1: UnorderedData<'a>,
U2: UnorderedData<'a>,
U3: UnorderedData<'a>,
<U1 as UnorderedData<'a>>::Storage: FastIndexExt,
<U1 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U2 as UnorderedData<'a>>::Storage: FastIndexExt,
<U2 as UnorderedData<'a>>::Storage: StorageRef<'a>,
<U3 as UnorderedData<'a>>::Storage: FastIndexExt,
<U3 as UnorderedData<'a>>::Storage: StorageRef<'a>,
[src]impl<'r, 'a, S> StorageEntitiesExt<'a, S> for &'r mut Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
[src]
impl<'r, 'a, S> StorageEntitiesExt<'a, S> for &'r mut Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
[src]type Component = <<S as UnorderedData<'a>>::Storage as StorageRef<'r>>::Component
type IntoStorage = <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage
pub fn into_storage(
self
) -> Option<<&'r mut Sto<'a, S> as StorageEntitiesExt<'a, S>>::IntoStorage>
[src]
self
) -> Option<<&'r mut Sto<'a, S> as StorageEntitiesExt<'a, S>>::IntoStorage>
pub fn entities(&self) -> &Entities<'a>
[src]
pub fn get(
self,
entity: &Entity
) -> Option<<&'r mut Sto<'a, S> as StorageEntitiesExt<'a, S>>::Component>
[src]
self,
entity: &Entity
) -> Option<<&'r mut Sto<'a, S> as StorageEntitiesExt<'a, S>>::Component>
impl<'a, 'r, S> StorageEntitiesExt<'a, S> for &'r Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
<S as UnorderedData<'a>>::Storage: ReadOnlyStorage,
<S as UnorderedData<'a>>::Storage: 'r,
[src]
impl<'a, 'r, S> StorageEntitiesExt<'a, S> for &'r Sto<'a, S> where
S: UnorderedData<'a>,
<S as UnorderedData<'a>>::Storage: StorageRef<'r>,
<S as UnorderedData<'a>>::Storage: IntoSendStorage<'r>,
<S as UnorderedData<'a>>::Storage: ReadOnlyStorage,
<S as UnorderedData<'a>>::Storage: 'r,
[src]type Component = <<S as UnorderedData<'a>>::Storage as StorageRef<'r>>::Component
type IntoStorage = <<S as UnorderedData<'a>>::Storage as IntoSendStorage<'r>>::SendStorage
pub fn into_storage(
self
) -> Option<<&'r Sto<'a, S> as StorageEntitiesExt<'a, S>>::IntoStorage>
[src]
self
) -> Option<<&'r Sto<'a, S> as StorageEntitiesExt<'a, S>>::IntoStorage>
pub fn entities(&self) -> &Entities<'a>
[src]
pub fn get(
self,
entity: &Entity
) -> Option<<&'r Sto<'a, S> as StorageEntitiesExt<'a, S>>::Component>
[src]
self,
entity: &Entity
) -> Option<<&'r Sto<'a, S> as StorageEntitiesExt<'a, S>>::Component>
impl<'a, S> StorageWrapper for Sto<'a, S> where
S: UnorderedData<'a>,
[src]
impl<'a, S> StorageWrapper for Sto<'a, S> where
S: UnorderedData<'a>,
[src]type Storage = <S as UnorderedData<'a>>::Storage
type Data = S
Auto Trait Implementations
impl<'a, S> !RefUnwindSafe for Sto<'a, S>
impl<'a, S> Send for Sto<'a, S> where
<S as UnorderedData<'a>>::Storage: Send,
<S as UnorderedData<'a>>::Storage: Send,
impl<'a, S> Sync for Sto<'a, S> where
<S as UnorderedData<'a>>::Storage: Sync,
<S as UnorderedData<'a>>::Storage: Sync,
impl<'a, S> Unpin for Sto<'a, S> where
<S as UnorderedData<'a>>::Storage: Unpin,
<S as UnorderedData<'a>>::Storage: Unpin,
impl<'a, S> !UnwindSafe for Sto<'a, S>
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]