Type Alias LayerList

Source
pub type LayerList<'a> = TableRef<'a, LayerListMarker>;
Expand description

LayerList table

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> LayerList<'a>

Source

pub fn num_layers(&self) -> u32

Source

pub fn paint_offsets(&self) -> &'a [BigEndian<Offset32>]

Offsets to Paint tables.

Source

pub fn paints(&self) -> ArrayOfOffsets<'a, Paint<'a>, Offset32>

A dynamically resolving wrapper for paint_offsets.

Trait Implementations§

Source§

impl<'a> Debug for LayerList<'a>

Source§

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

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

impl<'a> FontRead<'a> for LayerList<'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 LayerList<'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.