pub trait Value: Sized {
// Required methods
fn decode(data: &[u16]) -> Result<Self, DecodeError>;
fn encode(self) -> Box<[u16]>;
}Expand description
This trait contains all the conversion methods needed for working with points of the SunSpec models.
Required Methods§
sourcefn decode(data: &[u16]) -> Result<Self, DecodeError>
fn decode(data: &[u16]) -> Result<Self, DecodeError>
Decode value from a given slice of u16
Object Safety§
This trait is not object safe.