[−][src]Enum iter_set::Inclusion
The sets an element is included in.
Variants
Implementations
impl<T> Inclusion<T>
[src]
pub fn union(self) -> T
[src]
Return the element, whichever set it is in. If it is in both sets, the left element is returned.
pub fn intersection(self) -> Option<T>
[src]
Return the element if it is in both sets. The left element is returned.
pub fn difference(self) -> Option<T>
[src]
Return the element if it is in the left set.
pub fn symmetric_difference(self) -> Option<T>
[src]
Return the element if it is in exactly one set.
pub fn ordering(&self) -> Ordering
[src]
Return an Ordering
based on where the element is from.
Ordering::Less
: from the right set.Ordering::Equal
: from both setsOrdering::Greater
: from the left set.
Trait Implementations
impl<T: Clone> Clone for Inclusion<T>
[src]
pub fn clone(&self) -> Inclusion<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for Inclusion<T>
[src]
impl<T: Debug> Debug for Inclusion<T>
[src]
impl<T: Eq> Eq for Inclusion<T>
[src]
impl<T: PartialEq> PartialEq<Inclusion<T>> for Inclusion<T>
[src]
pub fn eq(&self, other: &Inclusion<T>) -> bool
[src]
pub fn ne(&self, other: &Inclusion<T>) -> bool
[src]
impl<T> StructuralEq for Inclusion<T>
[src]
impl<T> StructuralPartialEq for Inclusion<T>
[src]
Auto Trait Implementations
impl<T> Send for Inclusion<T> where
T: Send,
T: Send,
impl<T> Sync for Inclusion<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Inclusion<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,