Trait rinecs::entity::EntitiesStorage [−][src]
pub trait EntitiesStorage { fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>; fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>; fn entities_ref(&self) -> &[(Entity, MaskType)]; fn component_mask<C: 'static>(&self) -> MaskType; fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>; fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>; fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_>
where
<C as Component>::Storage: HierarchicalStorage<'s, C>; }
Required methods
fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'s, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'s, C>,
Implementors
impl EntitiesStorage for World
[src]
impl EntitiesStorage for World
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
impl<'a> EntitiesStorage for EntitiesDebug<'a>
[src]
impl<'a> EntitiesStorage for EntitiesDebug<'a>
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
impl<'a> EntitiesStorage for Entities<'a>
[src]
impl<'a> EntitiesStorage for Entities<'a>
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
impl<'a> EntitiesStorage for EntitiesCreation<'a>
[src]
impl<'a> EntitiesStorage for EntitiesCreation<'a>
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
impl<'a> EntitiesStorage for EntitiesThreadLocal<'a>
[src]
impl<'a> EntitiesStorage for EntitiesThreadLocal<'a>
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
impl<'a> EntitiesStorage for EntityStorages<'a>
[src]
impl<'a> EntitiesStorage for EntityStorages<'a>
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
impl<'a> EntitiesStorage for EntityStoragesCreation<'a>
[src]
impl<'a> EntitiesStorage for EntityStoragesCreation<'a>
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
impl<'a> EntitiesStorage for EntityStoragesThreadLocal<'a>
[src]
impl<'a> EntitiesStorage for EntityStoragesThreadLocal<'a>
[src]fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
fn entities_ref(&self) -> &[(Entity, MaskType)]
[src]
fn component_mask<C: 'static>(&self) -> MaskType
[src]
fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'_>
fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>
[src]
fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'_> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,