Trait spacetimedb_sats::ser::SerializeMap
source · pub trait SerializeMap {
type Ok;
type Error: Error;
// Required methods
fn serialize_entry<K: Serialize + ?Sized, V: Serialize + ?Sized>(
&mut self,
key: &K,
value: &V
) -> Result<(), Self::Error>;
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.