pub trait DekuContainerRead<'a>: DekuRead<'a, ()> {
    fn from_bytes(
        input: (&'a [u8], usize)
    ) -> Result<((&'a [u8], usize), Self), DekuError>
    where
        Self: Sized
; }
Expand description

“Reader” trait: implemented on DekuRead struct and enum containers. A container is a type which doesn’t need any context information.

Required Methods

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.

Implementors