pub trait KeyRangeCommon {
// Required methods
fn full_key_overlap(&self, other: &Self) -> bool;
fn full_key_extend(&mut self, other: &Self);
fn sstable_overlap(&self, other: &Self) -> bool;
fn compare_right_with_user_key(&self, ukey: UserKey<&[u8]>) -> Ordering;
// Provided method
fn compare_right_with(&self, full_key: &[u8]) -> Ordering { ... }
}
Required Methods§
fn full_key_overlap(&self, other: &Self) -> bool
fn full_key_extend(&mut self, other: &Self)
fn sstable_overlap(&self, other: &Self) -> bool
fn compare_right_with_user_key(&self, ukey: UserKey<&[u8]>) -> Ordering
Provided Methods§
fn compare_right_with(&self, full_key: &[u8]) -> Ordering
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.