[][src]Trait hibitset::DrainableBitSet

pub trait DrainableBitSet: BitSetLike {
    fn remove(&mut self, i: u32) -> bool;

    fn drain<'a>(&'a mut self) -> DrainBitIter<'a, Self>
    where
        Self: Sized
, { ... } }

A extension to the [BitSetLike] trait which allows draining it.

Required methods

fn remove(&mut self, i: u32) -> bool

Removes bit from the bit set.

Returns true if removal happened and false otherwise.

Loading content...

Provided methods

Important traits for DrainBitIter<'a, T>
fn drain<'a>(&'a mut self) -> DrainBitIter<'a, Self> where
    Self: Sized

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

Loading content...

Implementations on Foreign Types

impl<'a, T> DrainableBitSet for &'a mut T where
    T: DrainableBitSet
[src]

Loading content...

Implementors

impl DrainableBitSet for AtomicBitSet[src]

impl DrainableBitSet for BitSet[src]

impl<A: DrainableBitSet, B: DrainableBitSet> DrainableBitSet for BitSetAnd<A, B>[src]

impl<A: DrainableBitSet, B: DrainableBitSet> DrainableBitSet for BitSetOr<A, B>[src]

Loading content...