Trait bonsaidb::core::transmog::OwnedDeserializer
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,
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>
fn deserialize_owned(&self, data: &[u8]) -> Result<T, Self::Error>
Deserialize T
from data
.