Factor out parts of event bin

This commit is contained in:
Dominik Werder
2023-05-04 15:17:38 +02:00
parent 8fc73fd6ed
commit 585ecfe6a3
9 changed files with 260 additions and 38 deletions

View File

@@ -44,6 +44,10 @@ pub trait AppendEmptyBin {
fn append_empty_bin(&mut self, ts1: u64, ts2: u64);
}
pub trait AppendAllFrom {
fn append_all_from(&mut self, src: &mut Self);
}
pub trait AsAnyRef {
fn as_any_ref(&self) -> &dyn Any;
}

View File

@@ -9,11 +9,6 @@ pub trait HasTimestampDeque {
fn pulse_max(&self) -> Option<u64>;
}
pub trait RangeOverlapCmp {
fn range_overlap_cmp_beg(a: u64, b: u64) -> bool;
fn range_overlap_cmp_end(a: u64, b: u64) -> bool;
}
pub trait RangeOverlapInfo {
fn ends_before(&self, range: &SeriesRange) -> bool;
fn ends_after(&self, range: &SeriesRange) -> bool;