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

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

A deserializer holding a &str with a lifetime tied to another deserializer.

Methods

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

pub fn new(value: &'de str) -> BorrowedStrDeserializer<'de, E>[src]

Create a new borrowed deserializer from the given string.

Trait Implementations

impl<'de, E> Deserializer<'de> for BorrowedStrDeserializer<'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> EnumAccess<'de> for BorrowedStrDeserializer<'de, E> where
    E: Error
[src]

type Error = E

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

type Variant = UnitOnly<E>

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

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

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

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

Auto Trait Implementations

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

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

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

impl<'de, E> UnwindSafe for BorrowedStrDeserializer<'de, E> where
    E: UnwindSafe

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

Blanket Implementations

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

impl<T> From<T> for 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 = !

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.

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

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

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