pub struct EntityMeta {
pub offset: u32,
pub len: u32,
pub save_level: u16,
pub flags: u8,
pub created_after_save: u32,
}Expand description
Metadata for one entity in an arena store.
Fields§
§offset: u32Offset into the backing store’s data vec.
len: u32Allocated capacity (number of elements/bytes).
save_level: u16Save level when created or last COW-copied.
flags: u8Bit 0: is_global, Bit 1: gc_mark (reserved for future use).
created_after_save: u32Save ID that was active when this entity was created (0 = before any save). Used for invalidrestore: entities with created_after_save >= target_save_id are “newer than the snapshot being restored.”
Implementations§
Source§impl EntityMeta
impl EntityMeta
Trait Implementations§
Source§impl Clone for EntityMeta
impl Clone for EntityMeta
Source§fn clone(&self) -> EntityMeta
fn clone(&self) -> EntityMeta
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 Freeze for EntityMeta
impl RefUnwindSafe for EntityMeta
impl Send for EntityMeta
impl Sync for EntityMeta
impl Unpin for EntityMeta
impl UnsafeUnpin for EntityMeta
impl UnwindSafe for EntityMeta
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