Struct bitvec::vec::Drain[][src]

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

A draining iterator for BitVec.

This struct is created by the .drain() method on BitVec.

Original

vec::Drain

Implementations

impl<'a, O, T> Drain<'a, O, T> where
    O: BitOrder,
    T: BitStore
[src]

pub fn as_bitslice(&self) -> &'a BitSlice<O, T>

Notable traits for &'a BitSlice<O, T>

impl<'a, O, T> Read for &'a BitSlice<O, T> where
    O: BitOrder,
    T: BitStore,
    BitSlice<O, T>: BitField
impl<'a, O, T> Write for &'a mut BitSlice<O, T> where
    O: BitOrder,
    T: BitStore,
    BitSlice<O, T>: BitField
[src]

Returns the remaining bits of this iterator as a BitSlice.

Original

Drain::as_slice

API Differences

This method is renamed, as it operates on a BitSlice rather than an element slice.

Trait Implementations

impl<O, T> AsRef<BitSlice<O, T>> for Drain<'_, O, T> where
    O: BitOrder,
    T: BitStore
[src]

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

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

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

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

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

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

type Item = bool

The type of the elements being iterated over.

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

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

Auto Trait Implementations

impl<'a, O, T> RefUnwindSafe for Drain<'a, O, T> where
    O: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as BitStore>::Mem: RefUnwindSafe

impl<'a, O, T> Unpin for Drain<'a, O, T> where
    O: Unpin

impl<'a, O, T> !UnwindSafe for Drain<'a, O, T>

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