Trait serde::ser::SerializeSeq [] [src]

pub trait SerializeSeq {
    type Ok;
    type Error: Error;
    fn serialize_element<T: Serialize>(&mut self,
                                       value: T)
                                       -> Result<(), Self::Error>; fn end(self) -> Result<Self::Ok, Self::Error>; }

Returned from Serializer::serialize_seq and Serializer::serialize_seq_fixed_size.

Associated Types

Trickery to enforce correct use of the Serialize trait. Every SerializeSeq should set Ok = ().

The error type when some error occurs during serialization.

Required Methods

Serializes a sequence element.

Finishes serializing a sequence.

Implementors