[][src]Struct ringui::enum_set::EnumSet

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

A specialized set implementation to use enum types.

It is a logic error for an item to be modified in such a way that the transformation of the item to or from a usize, as determined by the CLike trait, changes while the item is in the set. This is normally only possible through Cell, RefCell, global state, I/O, or unsafe code.

Methods

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

Returns an empty EnumSet.

Returns the number of elements in the given EnumSet.

Returns true if the EnumSet is empty.

Returns false if the EnumSet contains any enum of the given EnumSet.

Returns true if a given EnumSet is included in this EnumSet.

Returns true if this EnumSet is included in the given EnumSet.

Returns the union of both EnumSets.

Returns the intersection of both EnumSets.

Adds an enum to the EnumSet, and returns true if it wasn't there before

Removes an enum from the EnumSet

Returns true if an EnumSet contains a given enum.

Important traits for Iter<E>

Returns an iterator over an EnumSet.

Trait Implementations

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

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 for EnumSet<E>
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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

This method tests for !=.

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

Performs copy-assignment from source. Read more

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

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

impl<'a, E: 'a + CLike + Copy> Extend<&'a E> for EnumSet<E>
[src]

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

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

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

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

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

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

The resulting type after applying the - operator.

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

The resulting type after applying the & operator.

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

The resulting type after applying the | operator.

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

The resulting type after applying the ^ operator.

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

impl<E> Serialize for EnumSet<E>
[src]

impl<'de, E> Deserialize<'de> for EnumSet<E>
[src]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

Tests if Self the same as the type T Read more

impl<T> Same for T
[src]

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]