pub trait OwnedDeserializer<T>: Format<'static, T> {
    // Required method
    fn deserialize_from<R>(&self, reader: R) -> Result<T, Self::Error>
       where R: Read;

    // Provided method
    fn deserialize_owned(&self, data: &[u8]) -> Result<T, Self::Error> { ... }
}
Expand description

A deserializer that does not attempt to borrow data when deserializing.

Required Methods§

fn deserialize_from<R>(&self, reader: R) -> Result<T, Self::Error>
where R: Read,

Deserialize T from reader.

Provided Methods§

fn deserialize_owned(&self, data: &[u8]) -> Result<T, Self::Error>

Deserialize T from data.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> OwnedDeserializer<T> for KeyFormat
where T: for<'a> Key<'a> + 'static,

§

impl<T> OwnedDeserializer<T> for Pot