Struct serde::de::value::BytesDeserializer[][src]

pub struct BytesDeserializer<'a, E> { /* fields omitted */ }

A deserializer holding a &[u8]. Always calls Visitor::visit_bytes.

Implementations

impl<'a, E> BytesDeserializer<'a, E>[src]

pub fn new(value: &'a [u8]) -> Self[src]

Create a new deserializer from the given bytes.

Trait Implementations

impl<'a, E> Clone for BytesDeserializer<'a, E>[src]

impl<'a, E> Copy for BytesDeserializer<'a, E>[src]

impl<'a, E> Debug for BytesDeserializer<'a, E>[src]

impl<'de, 'a, E> Deserializer<'de> for BytesDeserializer<'a, E> where
    E: Error
[src]

type Error = E

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

Auto Trait Implementations

impl<'a, E> RefUnwindSafe for BytesDeserializer<'a, E> where
    E: RefUnwindSafe

impl<'a, E> Send for BytesDeserializer<'a, E> where
    E: Send

impl<'a, E> Sync for BytesDeserializer<'a, E> where
    E: Sync

impl<'a, E> Unpin for BytesDeserializer<'a, E> where
    E: Unpin

impl<'a, E> UnwindSafe for BytesDeserializer<'a, E> where
    E: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.