Struct yabf::YabfIterator[][src]

pub struct YabfIterator<'s> { /* fields omitted */ }

Iterator over the bits set to true in the bit field container. Will iterate over the bits from lowest to to highest. This is a relatively expensive O(size of container) operation.

Trait Implementations

impl<'s> Clone for YabfIterator<'s>[src]

impl<'s> Iterator for YabfIterator<'s>[src]

type Item = usize

The type of the elements being iterated over.

fn next(&mut self) -> Option<usize>[src]

Maybe not the most efficient iterator possible, it iterates over each bit and tests if it is set and return the corresponding bit number. It skips to next word if the word bits (32 bits) are all zero, or all upper or lower 16 bits are zero

Auto Trait Implementations

impl<'s> RefUnwindSafe for YabfIterator<'s>

impl<'s> Send for YabfIterator<'s>

impl<'s> Sync for YabfIterator<'s>

impl<'s> Unpin for YabfIterator<'s>

impl<'s> UnwindSafe for YabfIterator<'s>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.