Trait ParseExt

Source
pub trait ParseExt<'a>: Sized {
    // Required method
    fn parse(slice: &'a [u8]) -> Result<Self, ParseError>;
}
Expand description

An extension trait to expose a nicer API to the user.

Required Methods§

Source

fn parse(slice: &'a [u8]) -> Result<Self, ParseError>

Parses a SOME/IP payload type from a given slice of bytes using Parse and validates all the bytes of the slice were used during parsing.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T> ParseExt<'a> for T
where T: Parse<'a>,