pub struct TimeRange(pub PointInTime, pub PointInTime);
Expand description
Represents a range of two valid PointInTimes that together define the start and end of some defined period of time.
Tuple Fields§
§0: PointInTime
§1: PointInTime
Trait Implementations§
source§impl Ord for TimeRange
impl Ord for TimeRange
source§impl PartialEq for TimeRange
impl PartialEq for TimeRange
source§impl PartialOrd for TimeRange
impl PartialOrd for TimeRange
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TimeRange
impl Eq for TimeRange
impl StructuralEq for TimeRange
impl StructuralPartialEq for TimeRange
Auto Trait Implementations§
impl RefUnwindSafe for TimeRange
impl Send for TimeRange
impl Sync for TimeRange
impl Unpin for TimeRange
impl UnwindSafe for TimeRange
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