Struct enumset::EnumSet [] [src]

pub struct EnumSet<T: EnumSetType> { /* fields omitted */ }

An efficient set type for enums created with the enum_set_type! macro.

Methods

impl<T: EnumSetType> EnumSet<T>
[src]

[src]

Returns an empty set.

[src]

Returns the number of values in this set.

[src]

Checks if the set is empty.

[src]

Removes all elements from the set.

[src]

Checks if this set shares no elements with another.

[src]

Checks if all elements in another set are in this set.

[src]

Checks if all elements of this set are in another set.

[src]

Returns a set containing the union of all elements in both sets.

[src]

Returns a set containing all elements in common with another set.

[src]

Returns a set with all elements of the other set removed.

[src]

Returns a set with all elements not contained in both sets.

[src]

Checks whether this set contains a value.

[src]

Adds a value to this set.

[src]

Removes a value from this set.

[src]

Adds all elements in another set to this one.

[src]

Removes all values in another set from this one.

[src]

Creates an iterator over the values in this set.

Trait Implementations

impl<T: Copy + EnumSetType> Copy for EnumSet<T> where
    T::Repr: Copy
[src]

impl<T: Clone + EnumSetType> Clone for EnumSet<T> where
    T::Repr: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialOrd + EnumSetType> PartialOrd for EnumSet<T> where
    T::Repr: PartialOrd
[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<T: Ord + EnumSetType> Ord for EnumSet<T> where
    T::Repr: Ord
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<T: PartialEq + EnumSetType> PartialEq for EnumSet<T> where
    T::Repr: PartialEq
[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<T: Eq + EnumSetType> Eq for EnumSet<T> where
    T::Repr: Eq
[src]

impl<T: Hash + EnumSetType> Hash for EnumSet<T> where
    T::Repr: Hash
[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<T: EnumSetType> IntoIterator for EnumSet<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<T: EnumSetType> Sub<EnumSet<T>> for EnumSet<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T: EnumSetType> BitAnd<EnumSet<T>> for EnumSet<T>
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl<T: EnumSetType> BitOr<EnumSet<T>> for EnumSet<T>
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<T: EnumSetType> BitXor<EnumSet<T>> for EnumSet<T>
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl<T: EnumSetType> BitOr<T> for EnumSet<T>
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<T: EnumSetType + Debug> Debug for EnumSet<T>
[src]

[src]

Formats the value using the given formatter.