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.

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

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

Formats the value using the given formatter.

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

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the | operator

The method for the | operator

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

The resulting type after applying the & operator

The method for the & operator

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

The resulting type after applying the ^ operator

The method for the ^ operator

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?

Creates an iterator from a value. Read more