Struct std::collections::bitv::BitvSet[src]
pub struct BitvSet {
// some fields omitted
}An implementation of a set using a bit vector as an underlying representation for holding numerical elements.
It should also be noted that the amount of storage necessary for holding a
set of objects is proportional to the maximum of the objects when viewed
as a uint.
Methods
impl BitvSet
fn new() -> BitvSet
Creates a new bit vector set with initially no contents
fn from_bitv(bitv: Bitv) -> BitvSet
Creates a new bit vector set from the given bit vector
fn capacity(&self) -> uint
Returns the capacity in bits for this bit vector. Inserting any element less than this amount will not trigger a resizing.
fn unwrap(self) -> Bitv
Consumes this set to return the underlying bit vector
fn union_with(&mut self, other: &BitvSet)
Union in-place with the specified other bit vector
fn intersect_with(&mut self, other: &BitvSet)
Intersect in-place with the specified other bit vector
fn difference_with(&mut self, other: &BitvSet)
Difference in-place with the specified other bit vector
fn symmetric_difference_with(&mut self, other: &BitvSet)
Symmetric difference in-place with the specified other bit vector