Struct mindus::MapSerializer
source · pub struct MapSerializer<'l>(pub &'l BlockRegistry<'l>);Expand description
serde map
Tuple Fields§
§0: &'l BlockRegistry<'l>Trait Implementations§
source§impl<'l> Serializer<Map<'l>> for MapSerializer<'l>
impl<'l> Serializer<Map<'l>> for MapSerializer<'l>
source§fn deserialize(
&mut self,
buff: &mut DataRead<'_>
) -> Result<Map<'l>, Self::ReadError>
fn deserialize( &mut self, buff: &mut DataRead<'_> ) -> Result<Map<'l>, Self::ReadError>
deserialize a map
notes:
- does not deserialize data
- does not deserialize entities
source§fn serialize(
&mut self,
_: &mut DataWrite<'_>,
_: &Map<'_>
) -> Result<(), Self::WriteError>
fn serialize( &mut self, _: &mut DataWrite<'_>, _: &Map<'_> ) -> Result<(), Self::WriteError>
serialize a map (todo) panics: always
type ReadError = ReadError
type WriteError = ()
Auto Trait Implementations§
impl<'l> RefUnwindSafe for MapSerializer<'l>
impl<'l> Send for MapSerializer<'l>
impl<'l> Sync for MapSerializer<'l>
impl<'l> Unpin for MapSerializer<'l>
impl<'l> UnwindSafe for MapSerializer<'l>
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