pub trait OverlapStrategy: Send + Sync {
// Required methods
fn check_overlap(&self, a: &SstableInfo, b: &SstableInfo) -> bool;
fn create_overlap_info(&self) -> Box<dyn OverlapInfo>;
// Provided methods
fn check_base_level_overlap(
&self,
tables: &[SstableInfo],
others: &[SstableInfo],
) -> Vec<SstableInfo> { ... }
fn check_overlap_with_range(
&self,
range: &KeyRange,
others: &[SstableInfo],
) -> Vec<SstableInfo> { ... }
}Required Methods§
fn check_overlap(&self, a: &SstableInfo, b: &SstableInfo) -> bool
fn create_overlap_info(&self) -> Box<dyn OverlapInfo>
Provided Methods§
fn check_base_level_overlap( &self, tables: &[SstableInfo], others: &[SstableInfo], ) -> Vec<SstableInfo>
fn check_overlap_with_range( &self, range: &KeyRange, others: &[SstableInfo], ) -> Vec<SstableInfo>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".