Struct legion::world::StorageAccessor[][src]

pub struct StorageAccessor<'a> { /* fields omitted */ }

Provides access to the archetypes and entity components contained within a world.

Implementations

impl<'a> StorageAccessor<'a>[src]

pub fn id(&self) -> WorldId[src]

Returns the world ID.

pub fn can_access_archetype(&self, ArchetypeIndex: ArchetypeIndex) -> bool[src]

Returns true if the given archetype is accessable from this storage accessor.

pub fn layout_index(&self) -> &'a SearchIndex[src]

Returns the archetype layout index.

pub fn components(&self) -> &'a Components[src]

Returns the component storage.

pub fn archetypes(&self) -> &'a [Archetype]

Notable traits for &'_ [u8]

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

Returns the archetypes.

pub fn groups(&self) -> &'a [Group]

Notable traits for &'_ [u8]

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

Returns group definitions.

pub fn group(&self, type_id: ComponentTypeId) -> Option<(usize, &'a Group)>[src]

Returns the group the given component belongs to.

Trait Implementations

impl<'a> Clone for StorageAccessor<'a>[src]

impl<'a> Copy for StorageAccessor<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for StorageAccessor<'a>

impl<'a> Send for StorageAccessor<'a>

impl<'a> Sync for StorageAccessor<'a>

impl<'a> Unpin for StorageAccessor<'a>

impl<'a> !UnwindSafe for StorageAccessor<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.