Trait IteratorVisitorMiddleware

Source
pub trait IteratorVisitorMiddleware<T> {
    type Output;

    // Required method
    fn transform<I>(iter: I) -> Self::Output
       where I: IntoIterator<Item = T>;
}
Expand description

This trait is used to decide how IteratorVisitor will deserialize a type.

Required Associated Types§

Source

type Output

The output of the middleware.

Required Methods§

Source

fn transform<I>(iter: I) -> Self::Output
where I: IntoIterator<Item = T>,

Takes in the item iterator and results in the IteratorVisitorMiddleware::Output type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§