pub enum TimeIndex<T: Ord + Eq + Copy + Debug> {
Empty,
One(T),
Set(BTreeSet<T>),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for TimeIndex<T>
impl<'de, T> Deserialize<'de> for TimeIndex<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, T: AsTime> TimeIndexLike<'a> for &'a TimeIndex<T>
impl<'a, T: AsTime> TimeIndexLike<'a> for &'a TimeIndex<T>
fn range_iter( self, w: Range<Self::IndexType>, ) -> impl Iterator<Item = T> + Send + Sync + 'a
fn range_iter_rev( self, w: Range<Self::IndexType>, ) -> impl Iterator<Item = T> + Send + Sync + 'a
fn range_count(&self, w: Range<Self::IndexType>) -> usize
fn last_range(&self, w: Range<Self::IndexType>) -> Option<Self::IndexType>
fn first_range(&self, w: Range<Self::IndexType>) -> Option<Self::IndexType>
Source§impl<'a, T: AsTime> TimeIndexOps<'a> for &'a TimeIndex<T>
impl<'a, T: AsTime> TimeIndexOps<'a> for &'a TimeIndex<T>
type IndexType = T
type RangeType = TimeIndexWindow<'a, T, TimeIndex<T>>
fn active(&self, w: Range<T>) -> bool
fn range(&self, w: Range<T>) -> Self::RangeType
fn first(&self) -> Option<T>
fn last(&self) -> Option<T>
fn iter( self, ) -> impl DoubleEndedIterator<Item = Self::IndexType> + Send + Sync + 'a
fn iter_rev(self) -> impl Iterator<Item = Self::IndexType> + Send + Sync + 'a
fn len(&self) -> usize
fn is_empty(&self) -> bool
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 merge<R>(self, other: R) -> MergedTimeIndex<Self, R>where
R: TimeIndexOps<'a, IndexType = Self::IndexType>,
impl<T: Ord + Eq + Copy + Debug> StructuralPartialEq for TimeIndex<T>
Auto Trait Implementations§
impl<T> Freeze for TimeIndex<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimeIndex<T>where
T: RefUnwindSafe,
impl<T> Send for TimeIndex<T>where
T: Send,
impl<T> Sync for TimeIndex<T>where
T: Sync,
impl<T> Unpin for TimeIndex<T>where
T: Unpin,
impl<T> UnsafeUnpin for TimeIndex<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TimeIndex<T>where
T: UnwindSafe + RefUnwindSafe,
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