[][src]Struct serde_test::Deserializer

pub struct Deserializer<I> where
    I: Iterator<Item = Token<'static>>, 
{ /* fields omitted */ }

Implementations

impl<I> Deserializer<I> where
    I: Iterator<Item = Token<'static>>, 
[src]

pub fn new(tokens: I) -> Deserializer<I>[src]

pub fn next_token(&mut self) -> Option<Token<'static>>[src]

Trait Implementations

impl<I> Deserializer for Deserializer<I> where
    I: Iterator<Item = Token<'static>>, 
[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization.

fn deserialize_option<V>(&mut self, visitor: V) -> Result<V::Value, Error> where
    V: Visitor
[src]

Hook into Option deserializing so we can treat Unit as a None, or a regular value as Some(value).

Auto Trait Implementations

impl<I> RefUnwindSafe for Deserializer<I> where
    I: RefUnwindSafe

impl<I> Send for Deserializer<I> where
    I: Send

impl<I> Sync for Deserializer<I> where
    I: Sync

impl<I> Unpin for Deserializer<I> where
    I: Unpin

impl<I> UnwindSafe for Deserializer<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.