[]Trait oxygengine_core::ecs::hibitset::DrainableBitSet

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

    fn drain(&'a mut self) -> DrainBitIter<'a, Self>

Notable traits for DrainBitIter<'a, T>

impl<'a, T> Iterator for DrainBitIter<'a, T> where
    T: DrainableBitSet
type Item = u32;
{ ... } }

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

fn drain(&'a mut self) -> DrainBitIter<'a, Self>

Notable traits for DrainBitIter<'a, T>

impl<'a, T> Iterator for DrainBitIter<'a, T> where
    T: DrainableBitSet
type Item = u32;

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

Loading content...

Implementors

impl DrainableBitSet for AtomicBitSet

impl DrainableBitSet for BitSet

impl<A, B> DrainableBitSet for BitSetAnd<A, B> where
    A: DrainableBitSet,
    B: DrainableBitSet

impl<A, B> DrainableBitSet for BitSetOr<A, B> where
    A: DrainableBitSet,
    B: DrainableBitSet

Loading content...