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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".