pub(super) struct EntityEntries {
by_id: FxHashMap<i32, EntitySlot>,
slots: Vec<Option<EntityEntry>>,
free: Vec<EntitySlot>,
}Fields§
§by_id: FxHashMap<i32, EntitySlot>§slots: Vec<Option<EntityEntry>>§free: Vec<EntitySlot>Implementations§
Source§impl EntityEntries
impl EntityEntries
pub(super) fn slot(&self, id: i32) -> Option<EntitySlot>
pub(super) fn entry(&self, slot: EntitySlot) -> &EntityEntry
pub(super) fn entry_mut(&mut self, slot: EntitySlot) -> &mut EntityEntry
pub(super) fn get(&self, id: i32) -> Option<&EntityEntry>
pub(super) fn get_mut(&mut self, id: i32) -> Option<&mut EntityEntry>
pub(super) fn contains_key(&self, id: i32) -> bool
pub(super) fn len(&self) -> usize
pub(super) fn values(&self) -> impl Iterator<Item = &EntityEntry>
pub(super) fn insert(&mut self, id: i32, entry: EntityEntry) -> EntitySlot
pub(super) fn remove(&mut self, id: i32) -> Option<(EntitySlot, EntityEntry)>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EntityEntries
impl !UnwindSafe for EntityEntries
impl Freeze for EntityEntries
impl Send for EntityEntries
impl Sync for EntityEntries
impl Unpin for EntityEntries
impl UnsafeUnpin for EntityEntries
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreWraps this value in an
Arc<SyncMutex<>>