pub trait MapVisitor<'de, K, V> {
    type Output;

    // Required method
    fn visit<A>(
        self,
        map: A
    ) -> Result<Self::Output, <A as MapAccess<'de>>::Error>
       where A: MapAccess<'de, Key = K, Value = V>;
}
Expand description

A visitor walking through a Deserializer for maps.

Required Associated Types§

source

type Output

The output produced by this visitor.

Required Methods§

source

fn visit<A>(self, map: A) -> Result<Self::Output, <A as MapAccess<'de>>::Error>
where A: MapAccess<'de, Key = K, Value = V>,

The input contains a key-value map.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'de, K, V> MapVisitor<'de, K, V> for BasicMapVisitor
where K: Ord,

§

type Output = BTreeMap<K, V>