pub struct ArchetypeSerializationStrategy;Expand description
A serialization strategy that uses the “Archetype” strategy.
This strategy leverages the ECS archetype storage directly for maximum performance, producing the smallest and fastest-to-load format.
Implementations§
Trait Implementations§
Source§impl Default for ArchetypeSerializationStrategy
impl Default for ArchetypeSerializationStrategy
Source§fn default() -> ArchetypeSerializationStrategy
fn default() -> ArchetypeSerializationStrategy
Returns the “default value” for a type. Read more
Source§impl SerializationStrategy for ArchetypeSerializationStrategy
impl SerializationStrategy for ArchetypeSerializationStrategy
Source§fn serialize(&self, world: &World) -> Result<Vec<u8>, SerializationError>
fn serialize(&self, world: &World) -> Result<Vec<u8>, SerializationError>
Serializes the world by calling its internal, unsafe serialize_archetype method.
Source§fn deserialize(
&self,
data: &[u8],
world: &mut World,
) -> Result<(), DeserializationError>
fn deserialize( &self, data: &[u8], world: &mut World, ) -> Result<(), DeserializationError>
Deserializes the world by calling its internal, unsafe deserialize_archetype method.
Source§fn get_strategy_id(&self) -> &'static str
fn get_strategy_id(&self) -> &'static str
Returns the unique, versioned string identifier for this strategy. Read more
Auto Trait Implementations§
impl Freeze for ArchetypeSerializationStrategy
impl RefUnwindSafe for ArchetypeSerializationStrategy
impl Send for ArchetypeSerializationStrategy
impl Sync for ArchetypeSerializationStrategy
impl Unpin for ArchetypeSerializationStrategy
impl UnsafeUnpin for ArchetypeSerializationStrategy
impl UnwindSafe for ArchetypeSerializationStrategy
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