Struct std::collections::enum_set::EnumSet[src]

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

A specialized Set implementation to use enum types.

Methods

impl<E: CLike> EnumSet<E>

fn empty<E: CLike>() -> EnumSet<E>

Returns an empty EnumSet.

fn is_empty<E: CLike>(&self) -> bool

Returns true if an EnumSet is empty.

fn intersects<E: CLike>(&self, e: EnumSet<E>) -> bool

Returns true if an EnumSet contains any enum of a given EnumSet

fn intersection<E: CLike>(&self, e: EnumSet<E>) -> EnumSet<E>

Returns an intersection of both EnumSets.

fn contains<E: CLike>(&self, e: EnumSet<E>) -> bool

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

fn union<E: CLike>(&self, e: EnumSet<E>) -> EnumSet<E>

Returns a union of both EnumSets.

fn add<E: CLike>(&mut self, e: E)

Add an enum to an EnumSet

fn contains_elem<E: CLike>(&self, e: E) -> bool

Returns true if an EnumSet contains a given enum

fn iter<E: CLike>(&self) -> Items<E>

Returns an iterator over an EnumSet

Trait Implementations

impl<E: CLike> Sub<EnumSet<E>, EnumSet<E>> for EnumSet<E>

fn sub<E: CLike>(&self, e: &EnumSet<E>) -> EnumSet<E>

impl<E: CLike> BitOr<EnumSet<E>, EnumSet<E>> for EnumSet<E>

fn bitor<E: CLike>(&self, e: &EnumSet<E>) -> EnumSet<E>

impl<E: CLike> BitAnd<EnumSet<E>, EnumSet<E>> for EnumSet<E>

fn bitand<E: CLike>(&self, e: &EnumSet<E>) -> EnumSet<E>

Derived Implementations

impl<E: Show> Show for EnumSet<E>

fn fmt<E: Show>(&self, __arg_0: &mut Formatter) -> Result<(), FormatError>

impl<__S: Writer, E: Hash<__S>> Hash<__S> for EnumSet<E>

fn hash<__S: Writer, E: Hash<__S>>(&self, __arg_0: &mut __S)

impl<E: Eq> Eq for EnumSet<E>

fn assert_receiver_is_total_eq<E: Eq>(&self)

impl<E: PartialEq> PartialEq for EnumSet<E>

fn eq<E: PartialEq>(&self, __arg_0: &EnumSet<E>) -> bool

fn ne<E: PartialEq>(&self, __arg_0: &EnumSet<E>) -> bool

fn ne<E: PartialEq>(&self, &EnumSet<E>) -> bool

impl<E: Clone> Clone for EnumSet<E>

fn clone<E: Clone>(&self) -> EnumSet<E>

fn clone_from<E: Clone>(&mut self, &EnumSet<E>)