Trait spacetimedb_lib::ser::SerializeMap
source · pub trait SerializeMap {
type Ok;
type Error: Error;
// Required methods
fn serialize_entry<K, V>(
&mut self,
key: &K,
value: &V
) -> Result<(), Self::Error>
where K: Serialize + ?Sized,
V: Serialize + ?Sized;
fn end(self) -> Result<Self::Ok, Self::Error>;
}Expand description
Returned from Serializer::serialize_map.
This provides a continuation of sorts
where you can call serialize_entry however many times
and then finally the end is reached.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.