pub enum TimeIndexWindow<'a, T: AsTime, TI> {
Empty,
Range {
timeindex: &'a TI,
range: Range<T>,
},
All(&'a TI),
}Variants§
Implementations§
Source§impl<'a, T: AsTime, TI> TimeIndexWindow<'a, T, TI>where
&'a TI: TimeIndexLike<'a, IndexType = T>,
impl<'a, T: AsTime, TI> TimeIndexWindow<'a, T, TI>where
&'a TI: TimeIndexLike<'a, IndexType = T>,
pub fn len(&self) -> usize
pub fn with_range(&self, w: Range<T>) -> TimeIndexWindow<'a, T, TI>
Trait Implementations§
Source§impl<'b, T: AsTime, TI> TimeIndexOps<'b> for TimeIndexWindow<'b, T, TI>where
&'b TI: TimeIndexLike<'b, IndexType = T>,
Self: 'b,
impl<'b, T: AsTime, TI> TimeIndexOps<'b> for TimeIndexWindow<'b, T, TI>where
&'b TI: TimeIndexLike<'b, IndexType = T>,
Self: 'b,
type IndexType = T
type RangeType = TimeIndexWindow<'b, T, TI>
fn active(&self, w: Range<T>) -> bool
fn range(&self, w: Range<T>) -> Self
fn first(&self) -> Option<T>
fn last(&self) -> Option<T>
fn iter(self) -> impl Iterator<Item = T> + Send + Sync + 'b
fn iter_rev(self) -> impl Iterator<Item = T> + Send + Sync + 'b
fn len(&self) -> usize
fn active_t(&self, w: Range<i64>) -> bool
fn range_t(&self, w: Range<i64>) -> Self::RangeType
fn first_t(&self) -> Option<i64>
fn last_t(&self) -> Option<i64>
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>(self, other: R) -> MergedTimeIndex<Self, R>where
R: TimeIndexOps<'a, IndexType = Self::IndexType>,
Auto Trait Implementations§
impl<'a, T, TI> Freeze for TimeIndexWindow<'a, T, TI>where
T: Freeze,
impl<'a, T, TI> RefUnwindSafe for TimeIndexWindow<'a, T, TI>where
TI: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, TI> Send for TimeIndexWindow<'a, T, TI>where
TI: Sync,
impl<'a, T, TI> Sync for TimeIndexWindow<'a, T, TI>where
TI: Sync,
impl<'a, T, TI> Unpin for TimeIndexWindow<'a, T, TI>where
T: Unpin,
impl<'a, T, TI> UnwindSafe for TimeIndexWindow<'a, T, TI>where
TI: RefUnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more