pub struct ByteReader<R> { /* private fields */ }

Implementations

Construct a new ByteReader from an iterator of u8

Construct a new ByteReader from a slice of bytes.

Turn the reader into an iterator of bits.

Yields one bool per bit, 1=true and 0=false.

Print the remaining data

Note: For debug purposes only, not part of the API.

Trait Implementations

look at the next (up to 16) bits of data Read more

Consume the given amount of bits from the input.

Assert that the next bits matches the given pattern. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.