Trait spacetimedb_sats::ser::SerializeArray
source · pub trait SerializeArray {
type Ok;
type Error: Error;
// Required methods
fn serialize_element<T: Serialize + ?Sized>(
&mut self,
element: &T
) -> Result<(), Self::Error>;
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.