Trait tantivy_common::BinarySerializable
source · [−]pub trait BinarySerializable: Debug + Sized {
fn serialize<W: Write>(&self, writer: &mut W) -> Result<()>;
fn deserialize<R: Read>(reader: &mut R) -> Result<Self>;
}
Expand description
Trait for a simple binary serialization.
Required Methods
fn deserialize<R: Read>(reader: &mut R) -> Result<Self>
fn deserialize<R: Read>(reader: &mut R) -> Result<Self>
Deserialize