Trait serde::de::value::private::Pair

source ·
pub trait Pair {
    type First;
    type Second;

    // Required method
    fn split(self) -> (Self::First, Self::Second);
}
Expand description

Avoid having to restate the generic types on MapDeserializer. The Iterator::Item contains enough information to figure out K and V.

Required Associated Types§

Required Methods§

source

fn split(self) -> (Self::First, Self::Second)

Implementations on Foreign Types§

source§

impl<A, B> Pair for (A, B)

§

type First = A

§

type Second = B

source§

fn split(self) -> (A, B)

Implementors§