Trait tantivy_common::DeserializeFrom
source · [−]pub trait DeserializeFrom<T: BinarySerializable> {
fn deserialize(&mut self) -> Result<T>;
}
Required Methods
fn deserialize(&mut self) -> Result<T>
Implementations on Foreign Types
sourceimpl<T: BinarySerializable> DeserializeFrom<T> for &[u8]
impl<T: BinarySerializable> DeserializeFrom<T> for &[u8]
Implement deserialize from &u8 for all types which implement BinarySerializable.
TryFrom would actually be preferrable, but not possible because of the orphan rules (not completely sure if this could be resolved)