pub trait FromData: Sized {
    const SIZE: usize;

    fn parse(data: &[u8]) -> Option<Self>;
}
Expand description

A trait for parsing raw binary data of fixed size.

This is a low-level, internal trait that should not be used directly.

Required Associated Constants

Object’s raw data size.

Not always the same as mem::size_of.

Required Methods

Parses an object from a raw data.

Implementations on Foreign Types

Implementors