Struct enum_set2::EnumSet[][src]

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

A BitSet indexed by an EnumLike type.

Methods

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

Returns the inner BitSet.

Returns a reference to the inner BitSet.

Constructs an EnumSet from a BitSet.

Creates a new EnumSet.

Attemps to minimalize the memory usage of the inner BitSet.

Important traits for WrapIter<E, I>

Iterator over each element in the set.

Iterator over each element in set || other.

Iterator over each element in set && other.

Iterator over each element in set - other.

Iterator over each element in set ^ other.

Computes the union with the other set, in-place.

Computes the intersection with the other set, in-place.

Computes the difference with the other set, in-place.

Computes the symmetric difference with the other set, in-place.

Returns the number of elements in the set.

Returns true if there are no elements in the set.

Clears all elements in the set.

Returns true if the set contains this value.

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

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

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

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

Returns true if the value was already present in the set

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<E: Hash + EnumLike> 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: PartialEq + EnumLike> 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 + EnumLike> Eq for EnumSet<E>
[src]

impl<E: PartialOrd + EnumLike> 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 + EnumLike> 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: EnumLike> Default for EnumSet<E>
[src]

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

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

Creates a value from an iterator. Read more

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

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

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

Formats the value using the given formatter. Read more

impl<'a, E: EnumLike> 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

Auto Trait Implementations

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

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