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