pub struct Storage { /* private fields */ }Expand description
Stores all entity data for a World.
Implementations§
Source§impl Storage
impl Storage
pub fn new(world_id: WorldId) -> Self
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.
Sourcepub fn archetypes_mut(&mut self) -> &mut [ArchetypeData]
pub fn archetypes_mut(&mut self) -> &mut [ArchetypeData]
Gets a mutable slice reference to all archetypes.
Auto Trait Implementations§
impl Freeze for Storage
impl !RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnsafeUnpin for Storage
impl !UnwindSafe for Storage
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> 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