Trait hibitset::DrainableBitSet
source · pub trait DrainableBitSet: BitSetLike {
// Required method
fn remove(&mut self, i: u32) -> bool;
// Provided method
fn drain<'a>(&'a mut self) -> DrainBitIter<'a, Self> ⓘ
where Self: Sized { ... }
}
Expand description
A extension to the BitSetLike
trait which allows draining it.
Required Methods§
Provided Methods§
sourcefn drain<'a>(&'a mut self) -> DrainBitIter<'a, Self> ⓘwhere
Self: Sized,
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.