pub trait ReadSane: SaneData {
// Required method
fn from_le_bytes(bytes: Vec<u8>) -> Vec<Self>;
}
Expand description
To be able read SANE-encoded data we need to be able convert the Vec<u8>
of little-endian
data to the corresponding vector of values
Required Methods§
fn from_le_bytes(bytes: Vec<u8>) -> Vec<Self>
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.