Skip to main content

BinnedRange

Trait BinnedRange 

Source
pub trait BinnedRange<T: TradeTimestampRangeIncluded> {
    // Required methods
    fn insert(&mut self, data: impl Iterator<Item = T>);
    fn get<'a>(
        &'a self,
        timestamp_range: &TimestampRangeInclusive,
    ) -> Result<impl Iterator<Item = &'a T>, BinnedDataError>
       where T: 'a;
    fn get_first(
        &self,
        timestamp_range: &TimestampRangeInclusive,
    ) -> Result<Option<&T>, BinnedDataError>;
    fn iter<'a>(
        &'a self,
        range: Range<&Timestamp>,
    ) -> Result<impl Iterator<Item = &'a T>, BinnedDataError>
       where T: 'a;
}

Required Methods§

Source

fn insert(&mut self, data: impl Iterator<Item = T>)

Source

fn get<'a>( &'a self, timestamp_range: &TimestampRangeInclusive, ) -> Result<impl Iterator<Item = &'a T>, BinnedDataError>
where T: 'a,

Source

fn get_first( &self, timestamp_range: &TimestampRangeInclusive, ) -> Result<Option<&T>, BinnedDataError>

Source

fn iter<'a>( &'a self, range: Range<&Timestamp>, ) -> Result<impl Iterator<Item = &'a T>, BinnedDataError>
where T: 'a,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§