Struct specs::BitSet[][src]

pub struct BitSet { /* fields omitted */ }

A BitSet is a simple set designed to track which indices are placed into it.

Note, a BitSet is limited by design to only usize**4 indices. Adding beyond this limit will cause the BitSet to panic.

Methods

impl BitSet
[src]

Creates an empty BitSet.

Creates an empty BitSet, preallocated for up to max indices.

Adds id to the BitSet. Returns true if the value was already in the set.

Removes id from the set, returns true if the value was removed, and false if the value was not set to begin with.

Returns true if id is in the set.

Completely wipes out the bit set.

Trait Implementations

impl DrainableBitSet for BitSet
[src]

Removes bit from the bit set. Read more

Important traits for DrainBitIter<'a, T>

Create a draining iterator that will scan over the keyspace and clears it while doing so.

impl<'a, T> BitAnd<T> for &'a BitSet where
    T: BitSetLike
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<T> BitAnd<T> for BitSet where
    T: BitSetLike
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl Extend<u32> for BitSet
[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> Extend<&'a u32> for BitSet
[src]

Extends a collection with the contents of an iterator. Read more

impl BitSetLike for BitSet
[src]

Return a usize where each bit represents if any word in layer2 has been set. Read more

Return the usize from the array of usizes that indicates if any bit has been set in layer1 Read more

Return the usize from the array of usizes that indicates if any bit has been set in layer0 Read more

Return a usize that maps to the direct 1:1 association with each index of the set Read more

Allows checking if set bit is contained in the bit set.

Gets the usize corresponding to layer and index. Read more

Important traits for BitIter<T>

Create an iterator that will scan over the keyspace

Create a parallel iterator that will scan over the keyspace

impl<T> BitOr<T> for BitSet where
    T: BitSetLike
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<'a, T> BitOr<T> for &'a BitSet where
    T: BitSetLike
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<'a> FromIterator<&'a u32> for BitSet
[src]

Creates a value from an iterator. Read more

impl FromIterator<u32> for BitSet
[src]

Creates a value from an iterator. Read more

impl Clone for BitSet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for BitSet
[src]

Returns the "default value" for a type. Read more

impl Debug for BitSet
[src]

Formats the value using the given formatter. Read more

impl<T> BitXor<T> for BitSet where
    T: BitSetLike
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<'a, T> BitXor<T> for &'a BitSet where
    T: BitSetLike
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<'a> IntoIterator for &'a BitSet
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl IntoIterator for BitSet
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a, B> BitAndAssign<&'a B> for BitSet where
    B: BitSetLike
[src]

Performs the &= operation.

impl<'a, B> BitXorAssign<&'a B> for BitSet where
    B: BitSetLike
[src]

Performs the ^= operation.

impl<'a> Not for &'a BitSet
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl Not for BitSet
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl<'a, B> BitOrAssign<&'a B> for BitSet where
    B: BitSetLike
[src]

Performs the |= operation.

impl Join for BitSet
[src]

Type of joined components.

Type of joined storages.

Type of joined bit mask.

Open this join by returning the mask and the storages. Read more

Get a joined component value by a given index.

Important traits for JoinIter<J>

Create a joined iterator over the contents.

impl ParJoin for BitSet
[src]

Create a joined parallel iterator over the contents.

impl<'a> Join for &'a BitSet
[src]

Type of joined components.

Type of joined storages.

Type of joined bit mask.

Open this join by returning the mask and the storages. Read more

Get a joined component value by a given index.

Important traits for JoinIter<J>

Create a joined iterator over the contents.

impl<'a> ParJoin for &'a BitSet
[src]

Create a joined parallel iterator over the contents.

Auto Trait Implementations

impl Send for BitSet

impl Sync for BitSet