pub trait TimeIndexOps<'a>:
Sized
+ Clone
+ Send
+ Sync
+ 'a {
type IndexType: AsTime;
type RangeType: TimeIndexOps<'a, IndexType = Self::IndexType> + 'a;
Show 15 methods
// Required methods
fn active(&self, w: Range<Self::IndexType>) -> bool;
fn range(&self, w: Range<Self::IndexType>) -> Self::RangeType;
fn iter(self) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a;
fn iter_rev(
self,
) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a;
fn len(&self) -> usize;
// Provided methods
fn active_t(&self, w: Range<i64>) -> bool { ... }
fn range_t(&self, w: Range<i64>) -> Self::RangeType { ... }
fn first_t(&self) -> Option<i64> { ... }
fn first(&self) -> Option<Self::IndexType> { ... }
fn last_t(&self) -> Option<i64> { ... }
fn last(&self) -> Option<Self::IndexType> { ... }
fn iter_t(self) -> impl Iterator<Item = i64> + Send + Sync + 'a { ... }
fn iter_rev_t(self) -> impl Iterator<Item = i64> + Send + Sync + 'a { ... }
fn is_empty(&self) -> bool { ... }
fn merge<R: TimeIndexOps<'a, IndexType = Self::IndexType>>(
self,
other: R,
) -> MergedTimeIndex<Self, R> { ... }
}Required Associated Types§
type IndexType: AsTime
type RangeType: TimeIndexOps<'a, IndexType = Self::IndexType> + 'a
Required Methods§
fn active(&self, w: Range<Self::IndexType>) -> bool
fn range(&self, w: Range<Self::IndexType>) -> Self::RangeType
fn iter(self) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a
fn iter_rev(self) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a
fn len(&self) -> usize
Provided Methods§
fn active_t(&self, w: Range<i64>) -> bool
fn range_t(&self, w: Range<i64>) -> Self::RangeType
fn first_t(&self) -> Option<i64>
fn first(&self) -> Option<Self::IndexType>
fn last_t(&self) -> Option<i64>
fn last(&self) -> Option<Self::IndexType>
fn iter_t(self) -> impl Iterator<Item = i64> + Send + Sync + 'a
fn iter_rev_t(self) -> impl Iterator<Item = i64> + Send + Sync + 'a
fn is_empty(&self) -> bool
fn merge<R: TimeIndexOps<'a, IndexType = Self::IndexType>>( self, other: R, ) -> MergedTimeIndex<Self, R>
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.