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

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

A helper deserializer that deserializes a map.

Methods

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

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

Construct a new MapDeserializer<I, K, V>.

Trait Implementations

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

type Error = E

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fn deserialize_newtype_struct<V>(&mut self, name: &'static str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn deserialize_tuple_struct<V>(&mut self, _name: &'static str, len: usize, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn deserialize_struct<V>(&mut self, _name: &'static str, _fields: &'static [&'static str], visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

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

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

fn deserialize_enum<V>(&mut self, _enum: &'static str, _variants: &'static [&'static str], _visitor: V) -> Result<V::Value, Self::Error> where V: EnumVisitor

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

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

type Error = E

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

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

fn end(&mut self) -> Result<(), Self::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