Struct serde::ser::impls::TupleVisitor2 [] [src]

pub struct TupleVisitor2<'a, T0: 'a, T1: 'a> {
    // some fields omitted
}

A tuple visitor.

Methods

impl<'a, T0: 'a, T1: 'a> TupleVisitor2<'a, T0, T1>

fn new(tuple: &'a (T0, T1)) -> TupleVisitor2<'a, T0, T1>

Construct a new, empty TupleVisitor.

Trait Implementations

impl<'a, T0, T1> SeqVisitor for TupleVisitor2<'a, T0, T1> where T0: Serialize, T1: Serialize

fn visit<S>(&mut self, serializer: &mut S) -> Result<Option<()>, S::Error> where S: Serializer

fn len(&self) -> Option<usize>