pub struct EnumSet<E> { priv bits: uint, }
A specialized Set implementation to use enum types.
impl<E: CLike> EnumSet<E>
fn empty() -> EnumSet<E>
Returns an empty EnumSet.
fn is_empty(&self) -> bool
Returns true if an EnumSet is empty.
fn intersects(&self, e: EnumSet<E>) -> bool
Returns true if an EnumSet contains any enum of a given EnumSet
fn intersection(&self, e: EnumSet<E>) -> EnumSet<E>
Returns an intersection of both EnumSets.
fn contains(&self, e: EnumSet<E>) -> bool
Returns true if a given EnumSet is included in an EnumSet.
fn union(&self, e: EnumSet<E>) -> EnumSet<E>
Returns a union of both EnumSets.
fn add(&mut self, e: E)
Add an enum to an EnumSet
fn contains_elem(&self, e: E) -> bool
Returns true if an EnumSet contains a given enum
fn iter(&self) -> EnumSetIterator<E>
Returns an iterator over an EnumSet
impl<E: std::clone::Clone> std::clone::Clone for EnumSet<E>
fn clone(&self) -> EnumSet<E>
impl<E: std::cmp::Eq> std::cmp::Eq for EnumSet<E>
impl<E: std::to_bytes::IterBytes> std::to_bytes::IterBytes for EnumSet<E>
fn iter_bytes(&self, __arg_0: bool, __arg_1: std::to_bytes::Cb) -> bool
impl<E: std::to_str::ToStr> std::to_str::ToStr for EnumSet<E>
fn to_str(&self) -> ~str
impl<E: CLike> std::ops::Sub for EnumSet<E>
impl<E: CLike> std::ops::BitOr for EnumSet<E>
impl<E: CLike> std::ops::BitAnd for EnumSet<E>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).