Trait bonsaidb::core::transmog::BorrowedDeserializer
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>
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.