pub enum BoundOrdering {
Within,
Outside,
Incomparable,
}Expand description
Position of a value relative to a single bound of a range.
This is the building block of RangePosition. For a lower bound, Within means the
value satisfies the bound (it is greater than, or equal to, the bound depending on
inclusiveness) and Outside means it is below it. For an upper bound, the meaning is
mirrored.
Variants§
Within
The value is on the inner side of the bound (it satisfies the bound).
Outside
The value is on the outer side of the bound (it violates the bound).
Incomparable
The value is incomparable with the bound. This can only happen for types that are
PartialOrd but not Ord.
Trait Implementations§
Source§impl Clone for BoundOrdering
impl Clone for BoundOrdering
Source§fn clone(&self) -> BoundOrdering
fn clone(&self) -> BoundOrdering
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoundOrdering
Source§impl Debug for BoundOrdering
impl Debug for BoundOrdering
impl Eq for BoundOrdering
Source§impl Hash for BoundOrdering
impl Hash for BoundOrdering
Source§impl PartialEq for BoundOrdering
impl PartialEq for BoundOrdering
Source§fn eq(&self, other: &BoundOrdering) -> bool
fn eq(&self, other: &BoundOrdering) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoundOrdering
Auto Trait Implementations§
impl Freeze for BoundOrdering
impl RefUnwindSafe for BoundOrdering
impl Send for BoundOrdering
impl Sync for BoundOrdering
impl Unpin for BoundOrdering
impl UnsafeUnpin for BoundOrdering
impl UnwindSafe for BoundOrdering
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