[][src]Struct plist::Deserializer

pub struct Deserializer<I> where
    I: IntoIterator<Item = Result<Event, Error>>, 
{ /* fields omitted */ }

A structure that deserializes plist event streams into Rust values.

Methods

impl<I> Deserializer<I> where
    I: IntoIterator<Item = Result<Event, Error>>, 
[src]

pub fn new(iter: I) -> Deserializer<I>[src]

Trait Implementations

impl<'de, 'a, I> Deserializer<'de> for &'a mut Deserializer<I> where
    I: IntoIterator<Item = Result<Event, Error>>, 
[src]

type Error = Error

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

fn deserialize_i128<V>(
    self,
    visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
    V: Visitor<'de>, 
[src]

Hint that the Deserialize type is expecting an i128 value. Read more

fn deserialize_u128<V>(
    self,
    visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
    V: Visitor<'de>, 
[src]

Hint that the Deserialize type is expecting an u128 value. Read more

fn is_human_readable(&self) -> bool[src]

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more

impl<'de, 'a, I> VariantAccess<'de> for &'a mut Deserializer<I> where
    I: IntoIterator<Item = Result<Event, Error>>, 
[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

fn newtype_variant<T>(self) -> Result<T, Self::Error> where
    T: Deserialize<'de>, 
[src]

Called when deserializing a variant with a single value. Read more

impl<'de, 'a, I> EnumAccess<'de> for &'a mut Deserializer<I> where
    I: IntoIterator<Item = Result<Event, Error>>, 
[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

fn variant<V>(self) -> Result<(V, Self::Variant), Self::Error> where
    V: Deserialize<'de>, 
[src]

variant is called to identify which variant to deserialize. Read more

Auto Trait Implementations

impl<I> Send for Deserializer<I> where
    <I as IntoIterator>::IntoIter: Send

impl<I> Sync for Deserializer<I> where
    <I as IntoIterator>::IntoIter: Sync

Blanket Implementations

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.

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

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

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