[][src]Struct jaylink::BitIter

pub struct BitIter<'a> { /* fields omitted */ }

An iterator over a received bit stream.

Implementations

impl<'a> BitIter<'a>[src]

pub fn bits_left(&self) -> usize[src]

Returns the number of bits left in self.

pub fn split_off(&mut self, count: usize) -> BitIter<'a>

Notable traits for BitIter<'_>

impl<'_> Iterator for BitIter<'_> type Item = bool;
[src]

Splits off another BitIter from selfs current position that will return count bits.

After this call, self will be advanced by count bits.

Trait Implementations

impl<'a> Clone for BitIter<'a>[src]

impl<'_> Debug for BitIter<'_>[src]

impl<'_> ExactSizeIterator for BitIter<'_>[src]

impl<'_> Iterator for BitIter<'_>[src]

type Item = bool

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for BitIter<'a>

impl<'a> Send for BitIter<'a>

impl<'a> Sync for BitIter<'a>

impl<'a> Unpin for BitIter<'a>

impl<'a> UnwindSafe for BitIter<'a>

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.