Trait serde::ser::SerializeTuple [] [src]

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

Returned from Serializer::serialize_tuple.

Associated Types

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

The error type when some error occurs during serialization.

Required Methods

Serializes a tuple element.

Finishes serializing a tuple.

Implementors