Skip to main content

Entry

Trait Entry 

Source
pub trait Entry {
    // Required methods
    fn key_hash(&self) -> u64;
    fn key_len(&self) -> usize;
    fn write_key_to(&self, buf: &mut Vec<u8>);
    fn value(&self) -> EntryValue<'_>;
}
Expand description

Trait for entries from that SST files can be created

Required Methods§

Source

fn key_hash(&self) -> u64

Returns the hash of the key

Source

fn key_len(&self) -> usize

Returns the length of the key

Source

fn write_key_to(&self, buf: &mut Vec<u8>)

Writes the key to a buffer

Source

fn value(&self) -> EntryValue<'_>

Returns the value

Implementations on Foreign Types§

Source§

impl<E: Entry> Entry for &E

Source§

fn key_hash(&self) -> u64

Source§

fn key_len(&self) -> usize

Source§

fn write_key_to(&self, buf: &mut Vec<u8>)

Source§

fn value(&self) -> EntryValue<'_>

Implementors§