pub trait Entry {
// Required methods
fn key_hash(&self) -> u64;
fn key_len(&self) -> usize;
fn key_bytes(&self) -> &[u8] ⓘ;
fn value(&self) -> EntryValue<'_>;
// Provided method
fn write_key_to(&self, buf: &mut Vec<u8>) { ... }
}Expand description
Trait for entries from that SST files can be created
Required Methods§
Sourcefn value(&self) -> EntryValue<'_>
fn value(&self) -> EntryValue<'_>
Returns the value
Provided Methods§
Sourcefn write_key_to(&self, buf: &mut Vec<u8>)
fn write_key_to(&self, buf: &mut Vec<u8>)
Writes the key to a buffer
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".