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]

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

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]

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]

Loading content...

Implementors

impl EntitiesStorage for World[src]

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

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

impl<'a> EntitiesStorage for EntitiesCreation<'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...