[][src]Struct serde_pickle::de::Deserializer

pub struct Deserializer<R: Read> { /* fields omitted */ }

Decodes pickle streams into values.

Implementations

impl<R: Read> Deserializer<R>[src]

pub fn new(rdr: R, decode_strings: bool) -> Deserializer<R>[src]

Construct a new Deserializer. The second argument decides whether strings (STRING opcodes, saved only by protocols 0-2) are decoded as UTF-8 strings or left as byte vectors.

pub fn deserialize_value(&mut self) -> Result<Value>[src]

Decode a Value from this pickle. This is different from going through the generic serde deserialize, since it preserves some types that are not in the serde data model, such as big integers.

pub fn end(&mut self) -> Result<()>[src]

Assert that we reached the end of the stream.

Trait Implementations

impl<'de: 'a, 'a, R: Read> Deserializer<'de> for &'a mut Deserializer<R>[src]

type Error = Error

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

Auto Trait Implementations

impl<R> RefUnwindSafe for Deserializer<R> where
    R: RefUnwindSafe

impl<R> Send for Deserializer<R> where
    R: Send

impl<R> Sync for Deserializer<R> where
    R: Sync

impl<R> Unpin for Deserializer<R> where
    R: Unpin

impl<R> UnwindSafe for Deserializer<R> where
    R: 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, 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.