pub struct StorageAccessor<'a> { /* private fields */ }Implementations§
Source§impl<'a> StorageAccessor<'a>
impl<'a> StorageAccessor<'a>
pub fn new(storage: &'a Storage, archetypes: Option<&'a BitSet>) -> Self
pub fn can_access_archetype(&self, ArchetypeIndex: ArchetypeIndex) -> bool
pub fn inner(&self) -> &'a Storage
pub fn into_inner(self) -> &'a Storage
Methods from Deref<Target = Storage>§
Sourcepub fn component_types(&self) -> &ComponentTypes
pub fn component_types(&self) -> &ComponentTypes
Gets a vector of slices of all component types for all archetypes.
Each slice contains the component types for the archetype at the corresponding index.
Sourcepub fn tag_types(&self) -> &TagTypes
pub fn tag_types(&self) -> &TagTypes
Gets a vector of slices of all tag types for all archetypes.
Each slice contains the tag types for the archetype at the corresponding index.
Sourcepub fn archetypes(&self) -> &[ArchetypeData]
pub fn archetypes(&self) -> &[ArchetypeData]
Gets a slice reference to all archetypes.
Trait Implementations§
Source§impl<'a> Clone for StorageAccessor<'a>
impl<'a> Clone for StorageAccessor<'a>
Source§fn clone(&self) -> StorageAccessor<'a>
fn clone(&self) -> StorageAccessor<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for StorageAccessor<'a>
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> UnsafeUnpin for StorageAccessor<'a>
impl<'a> !UnwindSafe for StorageAccessor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more