Trait serde::ser::SeqVisitor[][src]

pub trait SeqVisitor {
    fn visit<S>(&mut self, serializer: &mut S) -> Result<Option<()>, S::Error>
    where
        S: Serializer
; fn len(&self) -> Option<usize> { ... } }

A trait that is used by a Serialize to iterate through a sequence.

Required Methods

Serializes a sequence item in the serializer.

This returns Ok(Some(())) when there are more items to serialize, or Ok(None) when complete.

Provided Methods

Return the length of the sequence if known.

Implementations on Foreign Types

impl<T> SeqVisitor for Option<T> where
    T: Serialize
[src]

Implementors