pub trait FromBytes: Sized {
// Required method
fn from_bytes(i: &[u8]) -> IResult<&[u8], Self>;
}
Expand description
The trait provides method to deserialize struct from raw bytes
Required Methods§
Sourcefn from_bytes(i: &[u8]) -> IResult<&[u8], Self>
fn from_bytes(i: &[u8]) -> IResult<&[u8], Self>
Deserialize struct using nom
from raw bytes
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.