pub trait BorrowedDeserializer<'a, T>: Format<'a, T> {
    // Required method
    fn deserialize_borrowed(&self, data: &'a [u8]) -> Result<T, Self::Error>;
}
Expand description

A deserializer that borrows data when possible.

Required Methods§

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

Deserialize T from data, borrowing when possible.

Implementors§

§

impl<'a, T> BorrowedDeserializer<'a, T> for KeyFormatwhere T: Key<'a>,

§

impl<'a, T> BorrowedDeserializer<'a, T> for Potwhere T: Serialize + Deserialize<'a>,