[][src]Struct bitreader_async::BitReader

pub struct BitReader<R: Read + Unpin + Send> { /* fields omitted */ }

BitReader reads data from a byte slice at the granularity of a single bit.

Methods

impl<R: Read + Unpin + Send> BitReader<R>[src]

pub fn new(reader: R) -> BitReader<R>[src]

pub fn is_aligned(&self) -> bool[src]

pub async fn read_u8_slice_aligned<'_>(
    &'_ mut self,
    count: usize
) -> Result<Vec<u8>>
[src]

pub async fn read_aligned_be<'_, T>(&'_ mut self) -> Result<T> where
    T: Sized + ReadFromBigEndian + Unpin + Send
[src]

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

pub async fn read_be_bits<'_>(&'_ mut self, count: usize) -> Result<u8>[src]

pub async fn read_le_bits<'_>(&'_ mut self, count: usize) -> Result<u8>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for BitReader<R> where
    R: RefUnwindSafe

impl<R> Send for BitReader<R>

impl<R> Sync for BitReader<R> where
    R: Sync

impl<R> Unpin for BitReader<R>

impl<R> UnwindSafe for BitReader<R> where
    R: 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<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.