SSTableValue

Trait SSTableValue 

Source
pub trait SSTableValue:
    Clone
    + Send
    + Sync {
    // Required methods
    fn serialize<W: Write>(&self, writer: &mut W) -> Result<()>;
    fn deserialize<R: Read>(reader: &mut R) -> Result<Self>;
}
Expand description

SSTable value trait

Required Methods§

Source

fn serialize<W: Write>(&self, writer: &mut W) -> Result<()>

Source

fn deserialize<R: Read>(reader: &mut R) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SSTableValue for u64

u64 value implementation

Source§

fn serialize<W: Write>(&self, writer: &mut W) -> Result<()>

Source§

fn deserialize<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl SSTableValue for Vec<u8>

Vec value implementation

Source§

fn serialize<W: Write>(&self, writer: &mut W) -> Result<()>

Source§

fn deserialize<R: Read>(reader: &mut R) -> Result<Self>

Implementors§