pub trait TimeIndexLike<'a>: TimeIndexOps<'a> {
// Required methods
fn range_iter(
self,
w: Range<Self::IndexType>,
) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a;
fn range_iter_rev(
self,
w: Range<Self::IndexType>,
) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a;
fn range_count(&self, w: Range<Self::IndexType>) -> usize;
// Provided methods
fn first_range(&self, w: Range<Self::IndexType>) -> Option<Self::IndexType> { ... }
fn last_range(&self, w: Range<Self::IndexType>) -> Option<Self::IndexType> { ... }
}Required Methods§
fn range_iter( self, w: Range<Self::IndexType>, ) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a
fn range_iter_rev( self, w: Range<Self::IndexType>, ) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a
fn range_count(&self, w: Range<Self::IndexType>) -> usize
Provided Methods§
fn first_range(&self, w: Range<Self::IndexType>) -> Option<Self::IndexType>
fn last_range(&self, w: Range<Self::IndexType>) -> Option<Self::IndexType>
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.