Trait font_types::Scalar
source · pub trait Scalar: Sized {
type Raw: BeByteArray;
// Required methods
fn from_raw(raw: Self::Raw) -> Self;
fn to_raw(self) -> Self::Raw;
// Provided method
fn read(slice: &[u8]) -> Option<Self> { ... }
}
Expand description
A trait for font scalars.
This is an internal trait for encoding and decoding big-endian bytes.
You do not need to implement this trait directly; it is an implementation
detail of the BigEndian
wrapper.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.