Struct spacetimedb_lib::ser::serde::SerializeMap
source · pub struct SerializeMap<S> { /* private fields */ }Expand description
Serializes map entries by forwarding to S: serde::SerializeMap.
Trait Implementations§
source§impl<S> SerializeMap for SerializeMap<S>where
S: SerializeMap,
impl<S> SerializeMap for SerializeMap<S>where
S: SerializeMap,
§type Ok = <S as SerializeMap>::Ok
type Ok = <S as SerializeMap>::Ok
Must match the
Ok type of any Serializer that uses this type.§type Error = SerdeError<<S as SerializeMap>::Error>
type Error = SerdeError<<S as SerializeMap>::Error>
Must match the
Error type of any Serializer that uses this type.source§fn serialize_entry<K, V>(
&mut self,
key: &K,
value: &V
) -> Result<(), <SerializeMap<S> as SerializeMap>::Error>
fn serialize_entry<K, V>( &mut self, key: &K, value: &V ) -> Result<(), <SerializeMap<S> as SerializeMap>::Error>
Serialize a map entry given by its
key and value.source§fn end(
self
) -> Result<<SerializeMap<S> as SerializeMap>::Ok, <SerializeMap<S> as SerializeMap>::Error>
fn end( self ) -> Result<<SerializeMap<S> as SerializeMap>::Ok, <SerializeMap<S> as SerializeMap>::Error>
Consumes and finalizes the map serializer returning the
Self::Ok data.Auto Trait Implementations§
impl<S> RefUnwindSafe for SerializeMap<S>where
S: RefUnwindSafe,
impl<S> Send for SerializeMap<S>where
S: Send,
impl<S> Sync for SerializeMap<S>where
S: Sync,
impl<S> Unpin for SerializeMap<S>where
S: Unpin,
impl<S> UnwindSafe for SerializeMap<S>where
S: UnwindSafe,
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