TPropOps

Trait TPropOps 

Source
pub trait TPropOps<'a>:
    Clone
    + Send
    + Sync
    + Sized
    + 'a {
    // Required methods
    fn iter(
        self,
    ) -> impl DoubleEndedIterator<Item = (TimeIndexEntry, Prop)> + Send + Sync + 'a;
    fn iter_window(
        self,
        r: Range<TimeIndexEntry>,
    ) -> impl DoubleEndedIterator<Item = (TimeIndexEntry, Prop)> + Send + Sync + 'a;
    fn at(&self, ti: &TimeIndexEntry) -> Option<Prop>;

    // Provided methods
    fn active(&self, w: Range<TimeIndexEntry>) -> bool { ... }
    fn active_t(&self, w: Range<i64>) -> bool { ... }
    fn last_before(&self, t: TimeIndexEntry) -> Option<(TimeIndexEntry, Prop)> { ... }
    fn iter_t(
        self,
    ) -> impl DoubleEndedIterator<Item = (i64, Prop)> + Send + Sync + 'a { ... }
    fn iter_window_t(
        self,
        r: Range<i64>,
    ) -> impl DoubleEndedIterator<Item = (i64, Prop)> + Send + Sync + 'a { ... }
    fn iter_window_te(
        self,
        r: Range<TimeIndexEntry>,
    ) -> impl DoubleEndedIterator<Item = (i64, Prop)> + Send + Sync + 'a { ... }
}

Required Methods§

Source

fn iter( self, ) -> impl DoubleEndedIterator<Item = (TimeIndexEntry, Prop)> + Send + Sync + 'a

Source

fn iter_window( self, r: Range<TimeIndexEntry>, ) -> impl DoubleEndedIterator<Item = (TimeIndexEntry, Prop)> + Send + Sync + 'a

Source

fn at(&self, ti: &TimeIndexEntry) -> Option<Prop>

Provided Methods§

Source

fn active(&self, w: Range<TimeIndexEntry>) -> bool

Source

fn active_t(&self, w: Range<i64>) -> bool

Is there any event in this window

Source

fn last_before(&self, t: TimeIndexEntry) -> Option<(TimeIndexEntry, Prop)>

Source

fn iter_t( self, ) -> impl DoubleEndedIterator<Item = (i64, Prop)> + Send + Sync + 'a

Source

fn iter_window_t( self, r: Range<i64>, ) -> impl DoubleEndedIterator<Item = (i64, Prop)> + Send + Sync + 'a

Source

fn iter_window_te( self, r: Range<TimeIndexEntry>, ) -> impl DoubleEndedIterator<Item = (i64, Prop)> + Send + Sync + 'a

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.

Implementors§