Trait tantivy_common::DeserializeFrom

source ·
pub trait DeserializeFrom<T: BinarySerializable> {
    // Required method
    fn deserialize(&mut self) -> Result<T>;
}

Required Methods§

source

fn deserialize(&mut self) -> Result<T>

Implementations on Foreign Types§

source§

impl<T: BinarySerializable> DeserializeFrom<T> for &[u8]

Implement deserialize from &u8 for all types which implement BinarySerializable.

TryFrom would actually be preferable, but not possible because of the orphan rules (not completely sure if this could be resolved)

source§

fn deserialize(&mut self) -> Result<T>

Implementors§