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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T> BorrowedDeserializer<'a, T> for KeyFormat
where T: Key<'a>,

§

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