Type Alias DecodedBytes

Source
pub type DecodedBytes<'i> = &'i [u8];
Expand description

Type alias for decoded bytes.

Trait Implementations§

Source§

impl<'i> SmlParse<'i, &'i [u8]> for DecodedBytes<'i>

Source§

type Error = Infallible

The error produced if parsing fails or the input contained an error.
Source§

fn parse_from(value: &'i [u8]) -> Result<Self, Self::Error>

Takes the result of decoding and parses it into the resulting type.
Source§

impl<'i, ReadErr> SmlParse<'i, Result<&'i [u8], ReadDecodedError<ReadErr>>> for DecodedBytes<'i>
where ReadErr: Debug,

Source§

type Error = ReadDecodedError<ReadErr>

The error produced if parsing fails or the input contained an error.
Source§

fn parse_from( value: Result<&'i [u8], ReadDecodedError<ReadErr>>, ) -> Result<Self, Self::Error>

Takes the result of decoding and parses it into the resulting type.