ttf_parser::tables::gsub

Type Alias LigatureSets

Source
pub type LigatureSets<'a> = LazyOffsetArray16<'a, LigatureSet<'a>>;
Expand description

A list of Ligature sets.

Aliased Type§

struct LigatureSets<'a> {
    data: &'a [u8],
    offsets: LazyArray16<'a, Option<Offset16>>,
    data_type: PhantomData<LazyOffsetArray16<'a, Ligature<'a>>>,
}

Fields§

§data: &'a [u8]§offsets: LazyArray16<'a, Option<Offset16>>§data_type: PhantomData<LazyOffsetArray16<'a, Ligature<'a>>>

Implementations

Source§

impl<'a, T: FromSlice<'a>> LazyOffsetArray16<'a, T>

Source

pub fn new(data: &'a [u8], offsets: LazyArray16<'a, Option<Offset16>>) -> Self

Creates a new LazyOffsetArray16.

Source

pub fn parse(data: &'a [u8]) -> Option<Self>

Parses LazyOffsetArray16 from raw data.

Source

pub fn get(&self, index: u16) -> Option<T>

Returns a value at index.

Source

pub fn len(&self) -> u16

Returns array’s length.

Source

pub fn is_empty(&self) -> bool

Checks if array is empty.

Trait Implementations

Source§

impl<'a, T: Clone + FromSlice<'a>> Clone for LazyOffsetArray16<'a, T>

Source§

fn clone(&self) -> LazyOffsetArray16<'a, T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, T: FromSlice<'a> + Debug + Copy> Debug for LazyOffsetArray16<'a, T>

Source§

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

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

impl<'a, T: FromSlice<'a>> IntoIterator for LazyOffsetArray16<'a, T>

Source§

type Item = T

The type of the elements being iterated over.
Source§

type IntoIter = LazyOffsetArrayIter16<'a, T>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a, T: Copy + FromSlice<'a>> Copy for LazyOffsetArray16<'a, T>