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]

Returns an empty EnumSet.

Returns the number of elements in the set.

Checks if the set is empty.

Removes all elements from the set.

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

This is equivalent to checking for an empty intersection.

Returns true if the set is a superset of other.

Returns true if the set is a subset of other.

Returns the union of the set and other.

Returns the intersection of the set and other.

Returns the difference between the set and other.

Returns the symmetric difference between the set and other.

Adds the given value to the set.

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

Removes a value from the set.

Returns true if the value was present in the set.

Returns true if the set contains the given value.

Important traits for Iter<E>

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.

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

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

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

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

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

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

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]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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

Formats the value using the given formatter. Read more

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

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

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.

Performs the - operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

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

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

Creates a value from an iterator. Read more

impl<E: CLike> Extend<E> for EnumSet<E>
[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>

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<E> Send for EnumSet<E> where
    E: Send

impl<E> Sync for EnumSet<E> where
    E: Sync