pub struct Interval<I, T>{
pub start: I,
pub stop: I,
pub val: T,
}
Expand description
Represent a range from [start, stop) Inclusive start, exclusive of stop
Fields§
§start: I
§stop: I
§val: T
Implementations§
Trait Implementations§
Source§impl<I, T> Ord for Interval<I, T>
impl<I, T> Ord for Interval<I, T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I, T> PartialOrd for Interval<I, T>
impl<I, T> PartialOrd for Interval<I, T>
impl<I, T> Eq for Interval<I, T>
Auto Trait Implementations§
impl<I, T> Freeze for Interval<I, T>
impl<I, T> RefUnwindSafe for Interval<I, T>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<I, T> Send for Interval<I, T>
impl<I, T> Sync for Interval<I, T>
impl<I, T> Unpin for Interval<I, T>
impl<I, T> UnwindSafe for Interval<I, T>where
I: UnwindSafe,
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