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

pub struct BorrowedBytesDeserializer<'de, E> { /* fields omitted */ }

A deserializer holding a &[u8] with a lifetime tied to another deserializer. Always calls Visitor::visit_borrowed_bytes.

Implementations

impl<'de, E> BorrowedBytesDeserializer<'de, E>[src]

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

Create a new borrowed deserializer from the given borrowed bytes.

Trait Implementations

impl<'de, E> Clone for BorrowedBytesDeserializer<'de, E>[src]

impl<'de, E> Debug for BorrowedBytesDeserializer<'de, E>[src]

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

type Error = E

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

impl<'de, E> Copy for BorrowedBytesDeserializer<'de, E>[src]

Auto Trait Implementations

impl<'de, E> RefUnwindSafe for BorrowedBytesDeserializer<'de, E> where
    E: RefUnwindSafe

impl<'de, E> Send for BorrowedBytesDeserializer<'de, E> where
    E: Send

impl<'de, E> Sync for BorrowedBytesDeserializer<'de, E> where
    E: Sync

impl<'de, E> Unpin for BorrowedBytesDeserializer<'de, E> where
    E: Unpin

impl<'de, E> UnwindSafe for BorrowedBytesDeserializer<'de, 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.