Trait rin::ecs::entity::EntitiesStorage[][src]

pub trait EntitiesStorage {
    pub fn storage<C>(
        &self
    ) -> Option<ReadGuardRef<'_, <C as Component>::Storage>>
    where
        C: Component
;
pub fn storage_mut<C>(
        &self
    ) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>>
    where
        C: Component
;
pub fn entities_ref(&self) -> &[(Entity, U256)]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
;
pub fn component_mask<C>(&self) -> U256
    where
        C: 'static
;
pub fn entities_for_mask<S>(
        &self,
        query_mask: Bitmask,
        storage: &S
    ) -> IndexGuard<'_>
    where
        S: FastIndexExt
;
pub fn lazy_entities_for_mask(
        &self,
        query_mask: Bitmask
    ) -> LazyIndexGuard<'_>;
pub fn ordered_entities_for<C, S>(
        &self,
        query_mask: Bitmask,
        unordered_storage: &S
    ) -> OrderedIndexGuard<'_>
    where
        C: Component,
        S: FastIndexExt,
        <C as Component>::Storage: for<'s> HierarchicalStorage<'s, C>
; }

Required methods

pub fn storage<C>(&self) -> Option<ReadGuardRef<'_, <C as Component>::Storage>> where
    C: Component
[src]

pub fn storage_mut<C>(
    &self
) -> Option<WriteGuardRef<'_, <C as Component>::Storage, <C as Component>::MutStorageCacheGuard>> where
    C: Component
[src]

pub fn entities_ref(&self) -> &[(Entity, U256)]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn component_mask<C>(&self) -> U256 where
    C: 'static, 
[src]

pub fn entities_for_mask<S>(
    &self,
    query_mask: Bitmask,
    storage: &S
) -> IndexGuard<'_> where
    S: FastIndexExt
[src]

pub fn lazy_entities_for_mask(&self, query_mask: Bitmask) -> LazyIndexGuard<'_>[src]

pub fn ordered_entities_for<C, S>(
    &self,
    query_mask: Bitmask,
    unordered_storage: &S
) -> OrderedIndexGuard<'_> where
    C: Component,
    S: FastIndexExt,
    <C as Component>::Storage: for<'s> HierarchicalStorage<'s, C>, 
[src]

Loading content...

Implementors

impl EntitiesStorage for World[src]

impl<'a> EntitiesStorage for Entities<'a>[src]

impl<'a> EntitiesStorage for EntitiesCreation<'a>[src]

impl<'a> EntitiesStorage for EntitiesDebug<'a>[src]

impl<'a> EntitiesStorage for EntitiesThreadLocal<'a>[src]

impl<'a> EntitiesStorage for EntityStorages<'a>[src]

impl<'a> EntitiesStorage for EntityStoragesCreation<'a>[src]

impl<'a> EntitiesStorage for EntityStoragesThreadLocal<'a>[src]

Loading content...