pub enum RangeOrdering {
Below,
Inside,
Above,
}
Expand description
Return type for RangeComparable::range_cmp
.
Variants§
Below
The value is below (all) the range. For instance, -1
is below the range 0..42
.
Inside
The value is contained inside the range. For instance, 34
is inside the range 0..42
.
Above
The value is above (all) the range. For instance, 314
is above the range 0..42
.
Trait Implementations§
Source§impl Clone for RangeOrdering
impl Clone for RangeOrdering
Source§fn clone(&self) -> RangeOrdering
fn clone(&self) -> RangeOrdering
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RangeOrdering
impl Debug for RangeOrdering
Source§impl Hash for RangeOrdering
impl Hash for RangeOrdering
Source§impl PartialEq for RangeOrdering
impl PartialEq for RangeOrdering
impl Copy for RangeOrdering
impl Eq for RangeOrdering
impl StructuralPartialEq for RangeOrdering
Auto Trait Implementations§
impl Freeze for RangeOrdering
impl RefUnwindSafe for RangeOrdering
impl Send for RangeOrdering
impl Sync for RangeOrdering
impl Unpin for RangeOrdering
impl UnwindSafe for RangeOrdering
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