Struct bitvec::slice::IterOnes[][src]

pub struct IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
{ /* fields omitted */ }

Enumerates bits in a BitSlice that are set to 1.

This struct is created by the .iter_ones() method on BitSlices.

Trait Implementations

impl<'a, O: Clone, T: Clone> Clone for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O: Copy, T: Copy> Copy for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O: Debug, T: Debug> Debug for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<O, T> Default for IterOnes<'_, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<O, T> DoubleEndedIterator for IterOnes<'_, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O: Eq, T: Eq> Eq for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<O, T> ExactSizeIterator for IterOnes<'_, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<O, T> FusedIterator for IterOnes<'_, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<O, T> Iterator for IterOnes<'_, O, T> where
    O: BitOrder,
    T: BitStore
[src]

type Item = usize

The type of the elements being iterated over.

impl<'a, O: Ord, T: Ord> Ord for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O: PartialEq, T: PartialEq> PartialEq<IterOnes<'a, O, T>> for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O: PartialOrd, T: PartialOrd> PartialOrd<IterOnes<'a, O, T>> for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O, T> StructuralEq for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O, T> StructuralPartialEq for IterOnes<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

Auto Trait Implementations

impl<'a, O, T> RefUnwindSafe for IterOnes<'a, O, T> where
    O: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, O, T> Send for IterOnes<'a, O, T> where
    T: Sync

impl<'a, O, T> Sync for IterOnes<'a, O, T> where
    T: Sync

impl<'a, O, T> Unpin for IterOnes<'a, O, T>

impl<'a, O, T> UnwindSafe for IterOnes<'a, O, T> where
    O: RefUnwindSafe,
    T: RefUnwindSafe

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> Conv for T[src]

impl<T> FmtForward for T[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> Pipe for T where
    T: ?Sized
[src]

impl<T> Tap for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T[src]

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.