[−][src]Struct rustc_index::bit_set::BitIter

pub struct BitIter<'a, T: Idx> {
    word: Word,
    offset: usize,
    iter: Iter<'a, Word>,
    marker: PhantomData<T>,
}

Fields

word: Word

A copy of the current word, but with any already-visited bits cleared. (This lets us use trailing_zeros() to find the next set bit.) When it is reduced to 0, we move onto the next word.

offset: usize

The offset (measured in bits) of the current word.

iter: Iter<'a, Word>

Underlying iterator over the words.

marker: PhantomData<T>

Implementations

impl<'a, T: Idx> BitIter<'a, T>[src]

pub(in bit_set) fn new(
    words: &'a [Word]
) -> BitIter<'a, T>ⓘ

Notable traits for BitIter<'a, T>

impl<'a, T: Idx> Iterator for BitIter<'a, T> type Item = T;
[src]

Trait Implementations

impl<'a, T: Idx> Iterator for BitIter<'a, T>[src]

type Item = T

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for BitIter<'a, T> where
    T: RefUnwindSafe, 

impl<'a, T> Send for BitIter<'a, T> where
    T: Send, 

impl<'a, T> Sync for BitIter<'a, T> where
    T: Sync, 

impl<'a, T> Unpin for BitIter<'a, T> where
    T: Unpin, 

impl<'a, T> UnwindSafe for BitIter<'a, T> where
    T: UnwindSafe, 

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, 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.