Trait deku::DekuContainerRead [−][src]
“Reader” trait: implemented on DekuRead struct and enum containers. A container
is a type which
doesn’t need any context information.
Required methods
fn from_bytes(
input: (&'a [u8], usize)
) -> Result<((&'a [u8], usize), Self), DekuError> where
Self: Sized,
[src]
input: (&'a [u8], usize)
) -> Result<((&'a [u8], usize), Self), DekuError> where
Self: Sized,
Read bytes and construct type
- input - Input given as data and bit offset
Returns the remaining bytes and bit offset after parsing in addition to Self.