[][src]Struct serde_test::Serializer

pub struct Serializer<'a, I> where
    I: Iterator<Item = &'a Token<'a>>, 
{ /* fields omitted */ }

Implementations

impl<'a, I> Serializer<'a, I> where
    I: Iterator<Item = &'a Token<'a>>, 
[src]

pub fn new(tokens: I) -> Serializer<'a, I>[src]

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

Trait Implementations

impl<'a, I> Serializer for Serializer<'a, I> where
    I: Iterator<Item = &'a Token<'a>>, 
[src]

type Error = Error

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

type MapState = ()

A state object that is initialized by serialize_map, passed to serialize_map_elt, and consumed by serialize_map_end. Use () if no state is required. Read more

type SeqState = ()

A state object that is initialized by serialize_seq, passed to serialize_seq_elt, and consumed by serialize_seq_end. Use () if no state is required. Read more

type TupleState = ()

A state object that is initialized by serialize_tuple, passed to serialize_tuple_elt, and consumed by serialize_tuple_end. Use () if no state is required. Read more

type TupleStructState = ()

A state object that is initialized by serialize_tuple_struct, passed to serialize_tuple_struct_elt, and consumed by serialize_tuple_struct_end. Use () if no state is required. Read more

type TupleVariantState = ()

A state object that is initialized by serialize_tuple_variant, passed to serialize_tuple_variant_elt, and consumed by serialize_tuple_variant_end. Use () if no state is required. Read more

type StructState = ()

A state object that is initialized by serialize_struct, passed to serialize_struct_elt, and consumed by serialize_struct_end. Use () if no state is required. Read more

type StructVariantState = ()

A state object that is initialized by serialize_struct_variant, passed to serialize_struct_variant_elt, and consumed by serialize_struct_variant_end. Use () if no state is required. Read more

Auto Trait Implementations

impl<'a, I> RefUnwindSafe for Serializer<'a, I> where
    I: RefUnwindSafe

impl<'a, I> Send for Serializer<'a, I> where
    I: Send

impl<'a, I> Sync for Serializer<'a, I> where
    I: Sync

impl<'a, I> Unpin for Serializer<'a, I> where
    I: Unpin

impl<'a, I> UnwindSafe for Serializer<'a, 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.