owned_ttf_parser::opentype_layout

Type Alias FeatureList

Source
pub type FeatureList<'a> = RecordList<'a, Feature<'a>>;
Expand description

A list of Feature records.

Aliased Type§

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

Implementations

Source§

impl<'a, T> RecordList<'a, T>
where T: RecordListItem<'a>,

Source

pub fn len(&self) -> u16

Returns a number of items in the RecordList.

Source

pub fn is_empty(&self) -> bool

Checks that RecordList is empty.

Source

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

Returns RecordList value by index.

Source

pub fn find(&self, tag: Tag) -> Option<T>

Returns RecordList value by Tag.

Source

pub fn index(&self, tag: Tag) -> Option<u16>

Returns RecordList value index by Tag.

Trait Implementations

Source§

impl<'a, T> Clone for RecordList<'a, T>
where T: Clone + RecordListItem<'a>,

Source§

fn clone(&self) -> RecordList<'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> Debug for RecordList<'a, T>
where T: Debug + RecordListItem<'a>,

Source§

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

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

impl<'a, T> IntoIterator for RecordList<'a, T>
where T: RecordListItem<'a>,

Source§

type Item = T

The type of the elements being iterated over.
Source§

type IntoIter = RecordListIter<'a, T>

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

fn into_iter(self) -> <RecordList<'a, T> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a, T> Copy for RecordList<'a, T>
where T: Copy + RecordListItem<'a>,