[][src]Struct rmp_serde::decode::VariantAccess

pub struct VariantAccess<'a, R: 'a> { /* fields omitted */ }

Default variant visitor.

Note

We use default behaviour for new type, which decodes enums with a single value as a tuple.

Implementations

impl<'a, R: 'a> VariantAccess<'a, R>[src]

pub fn new(de: &'a mut Deserializer<R>) -> Self[src]

Trait Implementations

impl<'de, 'a, R: Read<'de>> EnumAccess<'de> for VariantAccess<'a, R>[src]

type Error = Error

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

type Variant = Self

The Visitor that will be used to deserialize the content of the enum variant. Read more

impl<'de, 'a, R: Read<'de>> VariantAccess<'de> for VariantAccess<'a, R>[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumAccess. Read more

Auto Trait Implementations

impl<'a, R> RefUnwindSafe for VariantAccess<'a, R> where
    R: RefUnwindSafe

impl<'a, R> Send for VariantAccess<'a, R> where
    R: Send

impl<'a, R> Sync for VariantAccess<'a, R> where
    R: Sync

impl<'a, R> Unpin for VariantAccess<'a, R>

impl<'a, R> !UnwindSafe for VariantAccess<'a, R>

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.