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.

Implementors§

§

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

§

impl<T> OwnedDeserializer<T> for Potwhere T: Serialize + DeserializeOwned,