pub struct PackedSnapshot {
pub header: SnapshotHeader,
pub archetypes: Vec<ComponentArchetype>,
pub entity_metadata: HashMap<EntityId, EntityMetadata>,
}Fields§
§header: SnapshotHeader§archetypes: Vec<ComponentArchetype>§entity_metadata: HashMap<EntityId, EntityMetadata>Implementations§
Source§impl PackedSnapshot
impl PackedSnapshot
pub fn new() -> Self
pub fn from_world_snapshot(snapshot: WorldSnapshot) -> Self
Trait Implementations§
Source§impl Clone for PackedSnapshot
impl Clone for PackedSnapshot
Source§fn clone(&self) -> PackedSnapshot
fn clone(&self) -> PackedSnapshot
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 moreSource§impl Debug for PackedSnapshot
impl Debug for PackedSnapshot
Source§impl Default for PackedSnapshot
impl Default for PackedSnapshot
Source§impl<'de> Deserialize<'de> for PackedSnapshot
impl<'de> Deserialize<'de> for PackedSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PackedSnapshot
impl RefUnwindSafe for PackedSnapshot
impl Send for PackedSnapshot
impl Sync for PackedSnapshot
impl Unpin for PackedSnapshot
impl UnwindSafe for PackedSnapshot
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