Trait serde::ser::MapVisitor
[−]
[src]
pub trait MapVisitor {
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 map.
Required Methods
fn visit<S>(&mut self, serializer: &mut S) -> Result<Option<()>, S::Error> where S: Serializer
Serializes a map item in the serializer.
This returns Ok(Some(()))
when there are more items to serialize, or Ok(None)
when complete.