Enum iter_set::Inclusion[][src]

pub enum Inclusion<T> {
    Left(T),
    Both(T, T),
    Right(T),
}
Expand description

The sets an element is included in.

Variants

Left(T)

Tuple Fields of Left

0: T
Both(T, T)

Tuple Fields of Both

0: T1: T
Right(T)

Tuple Fields of Right

0: T

Implementations

Return the element, whichever set it is in. If it is in both sets, the left element is returned.

Return the element if it is in both sets. The left element is returned.

Return the element if it is in the left set.

Return the element if it is in exactly one set.

Return an Ordering based on where the element is from.

  • Ordering::Less: from the right set.
  • Ordering::Equal: from both sets
  • Ordering::Greater: from the left set.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.