Struct enum_set::EnumSet [] [src]

pub struct EnumSet<E> { /* fields omitted */ }

A specialized set implementation to use enum types.

Methods

impl<E: CLike> EnumSet<E>
[src]

[src]

Returns an empty EnumSet.

[src]

Returns the number of elements in the set.

[src]

Checks if the set is empty.

[src]

Removes all elements from the set.

[src]

Returns true if the set has no elements in common with other.

This is equivalent to checking for an empty intersection.

[src]

Returns true if the set is a superset of other.

[src]

Returns true if the set is a subset of other.

[src]

Returns the union of the set and other.

[src]

Returns the intersection of the set and other.

[src]

Returns the difference between the set and other.

[src]

Returns the symmetric difference between the set and other.

[src]

Adds the given value to the set.

Returns true if the value was not already present in the set.

[src]

Removes a value from the set.

Returns true if the value was present in the set.

[src]

Returns true if the set contains the given value.

Important traits for Iter<E>
[src]

Returns an iterator over the set's elements.

Trait Implementations

impl<E: Copy> Copy for EnumSet<E>
[src]

impl<E: Clone> Clone for EnumSet<E>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E: PartialEq> PartialEq for EnumSet<E>
[src]

[src]

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

[src]

This method tests for !=.

impl<E: Eq> Eq for EnumSet<E>
[src]

impl<E: PartialOrd> PartialOrd for EnumSet<E>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<E: Ord> Ord for EnumSet<E>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<E: CLike + Debug> Debug for EnumSet<E>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: CLike> Hash for EnumSet<E>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<E: CLike> Sub for EnumSet<E>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<E: CLike> BitOr for EnumSet<E>
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<E: CLike> BitAnd for EnumSet<E>
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl<E: CLike> BitXor for EnumSet<E>
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl<E: CLike> Default for EnumSet<E>
[src]

[src]

Returns the "default value" for a type. Read more

impl<E: CLike> FromIterator<E> for EnumSet<E>
[src]

[src]

Creates a value from an iterator. Read more

impl<E: CLike> Extend<E> for EnumSet<E>
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl<'a, E: CLike> IntoIterator for &'a EnumSet<E>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for Iter<E>
[src]

Creates an iterator from a value. Read more