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

    // Required method
    fn visit<A: MapAccess<'de, Key = K, Value = V>>(
        self,
        map: A
    ) -> Result<Self::Output, A::Error>;
}
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: MapAccess<'de, Key = K, Value = V>>( self, map: A ) -> Result<Self::Output, A::Error>

The input contains a key-value map.

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Output = BTreeMap<K, V>