Type Alias read_fonts::tables::layout::ConditionSet

source ·
pub type ConditionSet<'a> = TableRef<'a, ConditionSetMarker>;
Expand description

Aliased Type§

struct ConditionSet<'a> { /* private fields */ }

Implementations§

source§

impl<'a> ConditionSet<'a>

source

pub fn condition_count(&self) -> u16

Number of conditions for this condition set.

source

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

Array of offsets to condition tables, from beginning of the ConditionSet table.

source

pub fn conditions(&self) -> ArrayOfOffsets<'a, ConditionFormat1<'a>, Offset32>

A dynamically resolving wrapper for condition_offsets.

Trait Implementations§

source§

impl<'a> Debug for ConditionSet<'a>

source§

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

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

impl<'a> FontRead<'a> for ConditionSet<'a>

source§

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

Read an instace of Self from the provided data, performing validation. Read more
source§

impl<'a> SomeTable<'a> for ConditionSet<'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.