Type Alias RawBytes

Source
pub type RawBytes<'a> = TableRef<'a, RawBytesMarker>;
Expand description

Used for the state_array and entry_table fields in StateHeader.

Aliased Type§

pub struct RawBytes<'a> {
    pub(crate) shape: RawBytesMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: RawBytesMarker§data: FontData<'a>

Implementations§

Source§

impl<'a> RawBytes<'a>

Source

pub fn data(&self) -> &'a [u8]

Trait Implementations§

Source§

impl<'a> Debug for RawBytes<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> FontRead<'a> for RawBytes<'a>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
Source§

impl<'a> SomeTable<'a> for RawBytes<'a>

Source§

fn type_name(&self) -> &str

The name of this table
Source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.