Struct meminterval::Interval
source · pub struct Interval<T: Ord> {
pub start: T,
pub end: T,
}
Fields§
§start: T
§end: T
Implementations§
Trait Implementations§
source§impl<T: Ord + Clone + CheckedAdd + One> From<&RangeInclusive<T>> for Interval<T>
impl<T: Ord + Clone + CheckedAdd + One> From<&RangeInclusive<T>> for Interval<T>
source§fn from(range: &RangeInclusive<T>) -> Self
fn from(range: &RangeInclusive<T>) -> Self
Converts to this type from the input type.
source§impl<T: Ord + Clone + CheckedAdd + One> From<RangeInclusive<T>> for Interval<T>
impl<T: Ord + Clone + CheckedAdd + One> From<RangeInclusive<T>> for Interval<T>
source§fn from(range: RangeInclusive<T>) -> Self
fn from(range: RangeInclusive<T>) -> Self
Converts to this type from the input type.
source§impl<T: Ord> Ord for Interval<T>
impl<T: Ord> Ord for Interval<T>
source§impl<T: Ord> PartialEq<Interval<T>> for Interval<T>
impl<T: Ord> PartialEq<Interval<T>> for Interval<T>
source§impl<T: Ord> PartialOrd<Interval<T>> for Interval<T>
impl<T: Ord> PartialOrd<Interval<T>> for Interval<T>
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<T: Copy + Ord> Copy for Interval<T>
impl<T: Ord> Eq for Interval<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Interval<T>where T: RefUnwindSafe,
impl<T> Send for Interval<T>where T: Send,
impl<T> Sync for Interval<T>where T: Sync,
impl<T> Unpin for Interval<T>where T: Unpin,
impl<T> UnwindSafe for Interval<T>where 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