Skip to main content

SerializeArray

Trait SerializeArray 

Source
pub trait SerializeArray {
    type Ok;

    // Required methods
    fn serialize_element<T>(&mut self, v: &T) -> Result<()>
       where T: Serialize + ?Sized;
    fn end(self) -> Result<Self::Ok>;
}
Expand description

A structure that can serialize an array.

Required Associated Types§

Source

type Ok

The output of the serializer.

Required Methods§

Source

fn serialize_element<T>(&mut self, v: &T) -> Result<()>
where T: Serialize + ?Sized,

Serialize an element.

Source

fn end(self) -> Result<Self::Ok>

End the serialization.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§