Struct rinecs::storage::SubStorages [−][src]
pub struct SubStorages<'a> { /* fields omitted */ }
Implementations
impl<'a> SubStorages<'a>
[src]
impl<'a> SubStorages<'a>
[src]pub fn split<U: DataAccesses>(&mut self) -> (SubStorages<'_>, SubStorages<'_>)
[src]
pub fn storage<C: Component>(
&self
) -> Option<ReadGuardRef<'a, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'a, <C as Component>::Storage>>
pub fn storage_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'a, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'a, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
pub fn storage_thread_local<C: Component>(
&self
) -> Option<ReadGuardRef<'a, <C as Component>::Storage>>
[src]
&self
) -> Option<ReadGuardRef<'a, <C as Component>::Storage>>
pub fn storage_thread_local_mut<C: Component>(
&self
) -> Option<WriteGuardRef<'a, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
[src]
&self
) -> Option<WriteGuardRef<'a, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
pub fn update_changed<C: Component>(&self) where
<C as Component>::Storage: AutoChangedStorageExt<'a>,
[src]
<C as Component>::Storage: AutoChangedStorageExt<'a>,
pub fn update_changed_thread_local<C: Component>(&self) where
<C as Component>::Storage: AutoChangedStorageExt<'a>,
[src]
<C as Component>::Storage: AutoChangedStorageExt<'a>,
pub fn component_mask<C: 'static>(&self) -> MaskType
[src]
pub fn entities_ref(&self) -> &'a [(Entity, MaskType)]
[src]
pub fn check_storage_changed(&self, id: Id) -> bool
[src]
pub fn entities_for_mask<S: FastIndexExt>(
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'a>
[src]
&self,
query_mask: Bitmask,
storage: &S
) -> IndexGuard<'a>
pub fn any_has_mask(&self, cmask: Bitmask) -> bool
[src]
pub fn ordered_entities_for_thread_local<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
pub fn ordered_entities_for<C: Component, S: FastIndexExt>(
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
[src]
&self,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a> where
<C as Component>::Storage: HierarchicalStorage<'b, C>,
pub unsafe fn creation_storage<C: ComponentThreadLocal>(
&mut self
) -> CreationSto<'_, C>
[src]
&mut self
) -> CreationSto<'_, C>
pub unsafe fn storages(&self) -> &Storages
[src]
pub unsafe fn storages_mut(&self) -> &mut Storages
[src]
pub fn debug_component<S: Serializer>(
&self,
entity: &Entity,
id: &Id,
serializer: S
) -> Result<(), Error>
[src]
&self,
entity: &Entity,
id: &Id,
serializer: S
) -> Result<(), Error>
pub fn components_masks_iter(
&self
) -> impl Iterator<Item = (&TypeId, &MaskType)>
[src]
&self
) -> impl Iterator<Item = (&TypeId, &MaskType)>
pub fn check(
&self,
entity: &Entity,
entity_mask: &MaskType,
mask: &Bitmask
) -> bool
[src]
&self,
entity: &Entity,
entity_mask: &MaskType,
mask: &Bitmask
) -> bool
Trait Implementations
impl<'a> Clone for SubStorages<'a>
[src]
impl<'a> Clone for SubStorages<'a>
[src]