Struct serde::de::value::MapDeserializer [] [src]

pub struct MapDeserializer<I, K, V> where I: Iterator<Item=(K, V)>, K: ValueDeserializer, V: ValueDeserializer {
    // some fields omitted
}

Methods

impl<I, K, V> MapDeserializer<I, K, V> where I: Iterator<Item=(K, V)>, K: ValueDeserializer, V: ValueDeserializer

fn new(iter: I, len: usize) -> Self

Trait Implementations

impl<I, K, V> Deserializer for MapDeserializer<I, K, V> where I: Iterator<Item=(K, V)>, K: ValueDeserializer, V: ValueDeserializer

type Error = Error

fn visit<V_>(&mut self, visitor: V_) -> Result<V_::Value, Error> where V_: Visitor

fn visit_option<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_seq<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_map<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_unit<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_seq<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_map<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_enum<V>(&mut self, _enum: &str, _visitor: V) -> Result<V::Value, Self::Error> where V: EnumVisitor

fn visit_bytes<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

impl<I, K, V> MapVisitor for MapDeserializer<I, K, V> where I: Iterator<Item=(K, V)>, K: ValueDeserializer, V: ValueDeserializer

type Error = Error

fn visit_key<T>(&mut self) -> Result<Option<T>, Error> where T: Deserialize

fn visit_value<T>(&mut self) -> Result<T, Error> where T: Deserialize

fn end(&mut self) -> Result<(), Error>

fn size_hint(&self) -> (usize, Option<usize>)

fn visit<K, V>(&mut self) -> Result<Option<(K, V)>, Self::Error> where K: Deserialize, V: Deserialize

fn missing_field<V>(&mut self, field: &'static str) -> Result<V, Self::Error> where V: Deserialize