Trait ParseExt
pub trait ParseExt<'a>: Sized {
// Required method
fn parse(slice: &'a [u8]) -> Result<Self, ParseError>;
}Available on crate feature
data-support-someip only.Expand description
An extension trait to expose a nicer API to the user.
Required Methods§
fn parse(slice: &'a [u8]) -> Result<Self, ParseError>
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.