[−][src]Trait deku::BitsReaderItems
"Reader" trait: read bits and construct multiple of type
Required methods
fn read(
input: &BitSlice<Msb0, u8>,
input_is_le: bool,
bit_size: Option<usize>,
count: usize
) -> Result<(&BitSlice<Msb0, u8>, Self), DekuError> where
Self: Sized,
input: &BitSlice<Msb0, u8>,
input_is_le: bool,
bit_size: Option<usize>,
count: usize
) -> Result<(&BitSlice<Msb0, u8>, Self), DekuError> where
Self: Sized,
Read bits and construct type
- input - Input as bits
- input_is_le -
true
if input is to be interpreted as little endian, false otherwise (controlled viaendian
deku attribute) - bit_size -
Some
ifbits
orbytes
deku attributes provided,None
otherwise - count -
Some
if thelen
orcount
attribute is provided
Implementations on Foreign Types
impl<T: BitsReader> BitsReaderItems for Vec<T>
[src]
fn read(
input: &BitSlice<Msb0, u8>,
input_is_le: bool,
bit_size: Option<usize>,
count: usize
) -> Result<(&BitSlice<Msb0, u8>, Self), DekuError> where
Self: Sized,
[src]
input: &BitSlice<Msb0, u8>,
input_is_le: bool,
bit_size: Option<usize>,
count: usize
) -> Result<(&BitSlice<Msb0, u8>, Self), DekuError> where
Self: Sized,