Expand description
Represents an interval of values x..y
(much like Range<usize>
)
which supports various arithmetic operations.
Fields§
§start: T
§end: T
Implementations§
Trait Implementations§
source§impl<T> From<RangeInclusive<T>> for Interval<T>where
T: Copy + Ord,
impl<T> From<RangeInclusive<T>> for Interval<T>where
T: Copy + Ord,
source§fn from(r: RangeInclusive<T>) -> Self
fn from(r: RangeInclusive<T>) -> Self
Converts to this type from the input type.
source§impl<T> PartialEq<Interval<T>> for Interval<T>where
T: Copy + Ord + PartialEq,
impl<T> PartialEq<Interval<T>> for Interval<T>where
T: Copy + Ord + PartialEq,
impl<T> Copy for Interval<T>where
T: Copy + Ord + Copy,
impl<T> Eq for Interval<T>where
T: Copy + Ord + Eq,
impl<T> StructuralEq for Interval<T>where
T: Copy + Ord,
impl<T> StructuralPartialEq for Interval<T>where
T: Copy + Ord,
impl Word for Interval<w256>
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§
§impl<T> CloneAny for Twhere
T: Any + Clone,
impl<T> CloneAny for Twhere
T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global>where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global>where
T: Sync,
fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Send + Sync + 'static, Global>where
T: Send + Sync,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.