pub trait Model: Sized {
const ID: u16;
// Required methods
fn from_data(data: &[u16]) -> Result<Self, DecodeError>;
fn addr(models: &Models) -> ModelAddr<Self>;
}
Expand description
Every model implements this trait which contains methods for accessing
Required Associated Constants§
Required Methods§
Sourcefn from_data(data: &[u16]) -> Result<Self, DecodeError>
fn from_data(data: &[u16]) -> Result<Self, DecodeError>
Parse model points from a given u16 slice
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.