pub enum SetRelation {
Subset,
Disjoint,
Overlapping,
}Expand description
Describes how one set relates to another.
SetRelation::Subset takes precedence when the left-hand set is empty and therefore also
disjoint.
Variants§
Subset
Every value in the left-hand set is also in the right-hand set.
Disjoint
The two sets have no values in common.
Overlapping
The sets overlap, but the left-hand set is not a subset of the right-hand set.
Trait Implementations§
Source§impl Clone for SetRelation
impl Clone for SetRelation
Source§fn clone(&self) -> SetRelation
fn clone(&self) -> SetRelation
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 SetRelation
Source§impl Debug for SetRelation
impl Debug for SetRelation
impl Eq for SetRelation
Source§impl PartialEq for SetRelation
impl PartialEq for SetRelation
Source§fn eq(&self, other: &SetRelation) -> bool
fn eq(&self, other: &SetRelation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetRelation
Auto Trait Implementations§
impl Freeze for SetRelation
impl RefUnwindSafe for SetRelation
impl Send for SetRelation
impl Sync for SetRelation
impl Unpin for SetRelation
impl UnsafeUnpin for SetRelation
impl UnwindSafe for SetRelation
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