Trait font_types::ReadScalar
source · pub trait ReadScalar: FixedSize {
// Required method
fn read(bytes: &[u8]) -> Option<Self>;
}Expand description
A trait for types that can be read from raw bytes.
This is a generalization that gives us a failable read method for all our
Scalar types, as well as their BigEndian representations.
You should not need to implement this trait; it is provided automatically
when you implement Scalar.