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: TImplementations§
Trait Implementations§
Source§impl<'__de, I, T, __Context> BorrowDecode<'__de, __Context> for Interval<I, T>where
I: BorrowDecode<'__de, __Context>,
T: BorrowDecode<'__de, __Context>,
impl<'__de, I, T, __Context> BorrowDecode<'__de, __Context> for Interval<I, T>where
I: BorrowDecode<'__de, __Context>,
T: BorrowDecode<'__de, __Context>,
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<I: Ord, T> Ord for Interval<I, T>
impl<I: Ord, 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: Ord, T> PartialOrd for Interval<I, T>
impl<I: Ord, T> PartialOrd for Interval<I, T>
impl<I: PartialEq, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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