Struct gcollections::wrappers::enum_set::EnumSet [] [src]

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

Methods

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

fn wrap(es: StdEnumSet<E>) -> EnumSet<E>

Methods from Deref<Target=StdEnumSet<T>>

fn len(&self) -> usize

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

Returns the number of elements in the given EnumSet.

fn is_empty(&self) -> bool

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

Returns true if the EnumSet is empty.

fn clear(&mut self)

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

fn is_disjoint(&self, other: &EnumSet<E>) -> bool

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

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

fn is_superset(&self, other: &EnumSet<E>) -> bool

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

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

fn is_subset(&self, other: &EnumSet<E>) -> bool

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

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

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

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

Returns the union of both EnumSets.

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

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

Returns the intersection of both EnumSets.

fn insert(&mut self, e: E) -> bool

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

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

fn remove(&mut self, e: &E) -> bool

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

Removes an enum from the EnumSet

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

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

Returns true if an EnumSet contains a given enum.

fn iter(&self) -> Iter<E>

Unstable (enumset)

: matches collection reform specification, waiting for dust to settle

Returns an iterator over an EnumSet.

Trait Implementations

impl<T> Deref for EnumSet<T>
[src]

type Target = StdEnumSet<T>

The resulting type after dereferencing

fn deref<'a>(&'a self) -> &'a StdEnumSet<T>

The method called to dereference a value

impl<T> DerefMut for EnumSet<T>
[src]

fn deref_mut<'a>(&'a mut self) -> &'a mut StdEnumSet<T>

The method called to mutably dereference a value

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

fn contains(&self, value: &E) -> bool

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

type Output = EnumSet<E>

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

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

type Output = EnumSet<E>

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