pub trait ArrayVisitor<'de, T> {
    type Output;

    // Required method
    fn visit<A: ArrayAccess<'de, Element = T>>(
        self,
        vec: A
    ) -> Result<Self::Output, A::Error>;
}
Expand description

A visitor walking through a Deserializer for arrays.

Required Associated Types§

source

type Output

The output produced by this visitor.

Required Methods§

source

fn visit<A: ArrayAccess<'de, Element = T>>( self, vec: A ) -> Result<Self::Output, A::Error>

The input contains an array.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'de, T> ArrayVisitor<'de, T> for BasicVecVisitor

§

type Output = Vec<T>

source§

impl<'de, T, const N: usize> ArrayVisitor<'de, T> for BasicSmallVecVisitor<N>