pub enum SetIntersectionLevel {
Disjoint,
Intersects,
Includes,
Equals,
}Expand description
The possible relations between two sets.
Note that Equals implies Includes, which itself implies Intersects.
You can check for intersection with level >= SetIntersecionLevel::Intersection and for inclusion with level >= SetIntersectionLevel::Includes.
Variants§
Trait Implementations§
source§impl Clone for SetIntersectionLevel
impl Clone for SetIntersectionLevel
source§fn clone(&self) -> SetIntersectionLevel
fn clone(&self) -> SetIntersectionLevel
Returns a copy 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 SetIntersectionLevel
impl Debug for SetIntersectionLevel
source§impl Hash for SetIntersectionLevel
impl Hash for SetIntersectionLevel
source§impl Ord for SetIntersectionLevel
impl Ord for SetIntersectionLevel
source§fn cmp(&self, other: &SetIntersectionLevel) -> Ordering
fn cmp(&self, other: &SetIntersectionLevel) -> Ordering
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 PartialEq for SetIntersectionLevel
impl PartialEq for SetIntersectionLevel
source§fn eq(&self, other: &SetIntersectionLevel) -> bool
fn eq(&self, other: &SetIntersectionLevel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SetIntersectionLevel
impl PartialOrd for SetIntersectionLevel
source§fn partial_cmp(&self, other: &SetIntersectionLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &SetIntersectionLevel) -> Option<Ordering>
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 Copy for SetIntersectionLevel
impl Eq for SetIntersectionLevel
impl StructuralEq for SetIntersectionLevel
impl StructuralPartialEq for SetIntersectionLevel
Auto Trait Implementations§
impl RefUnwindSafe for SetIntersectionLevel
impl Send for SetIntersectionLevel
impl Sync for SetIntersectionLevel
impl Unpin for SetIntersectionLevel
impl UnwindSafe for SetIntersectionLevel
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