Trait SampleableIndex

Source
pub trait SampleableIndex<TIndex: Serialize + Hash + Copy + Eq + Ord, TInterval> {
    // Required methods
    fn sample_rates(&self) -> Vec<(usize, TInterval)>;
    fn is_mono_intervaled(&self) -> bool;
}
Expand description

This trait represents an index that has a notion of sampleability. i.e. the semantic meaning of differenencces in the index

Required Methods§

Source

fn sample_rates(&self) -> Vec<(usize, TInterval)>

Source

fn is_mono_intervaled(&self) -> bool

Implementors§

Source§

impl SampleableIndex<NaiveDateTime, Duration> for HashableIndex<NaiveDateTime>

Implementation of SampleableIndex for HashableIndex