pub struct ExtendedChunkSerializer;Expand description
Extended chunk serializer with format support.
Implementations§
Source§impl ExtendedChunkSerializer
impl ExtendedChunkSerializer
Sourcepub fn serialize_with_format(
chunk: &TerrainChunk,
format: SerializationFormat,
) -> Vec<u8> ⓘ
pub fn serialize_with_format( chunk: &TerrainChunk, format: SerializationFormat, ) -> Vec<u8> ⓘ
Serialize with the given format.
Sourcepub fn deserialize_with_format(
bytes: &[u8],
format: SerializationFormat,
) -> Option<TerrainChunk>
pub fn deserialize_with_format( bytes: &[u8], format: SerializationFormat, ) -> Option<TerrainChunk>
Deserialize with the given format.
Auto Trait Implementations§
impl Freeze for ExtendedChunkSerializer
impl RefUnwindSafe for ExtendedChunkSerializer
impl Send for ExtendedChunkSerializer
impl Sync for ExtendedChunkSerializer
impl Unpin for ExtendedChunkSerializer
impl UnsafeUnpin for ExtendedChunkSerializer
impl UnwindSafe for ExtendedChunkSerializer
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