Struct hb_ot_map_t

Source
pub struct hb_ot_map_t {
    found_script: [bool; 2],
    chosen_script: [Option<Tag>; 2],
    global_mask: u32,
    features: Vec<feature_map_t>,
    lookups: [Vec<lookup_map_t>; 2],
    stages: [Vec<StageMap>; 2],
}

Fields§

§found_script: [bool; 2]§chosen_script: [Option<Tag>; 2]§global_mask: u32§features: Vec<feature_map_t>§lookups: [Vec<lookup_map_t>; 2]§stages: [Vec<StageMap>; 2]

Implementations§

Source§

impl hb_ot_map_t

Source

pub const MAX_BITS: u32 = 8u32

Source

pub const MAX_VALUE: u32 = 255u32

Source

pub fn found_script(&self, table_index: TableIndex) -> bool

Source

pub fn chosen_script(&self, table_index: TableIndex) -> Option<hb_tag_t>

Source

pub fn get_global_mask(&self) -> u32

Source

pub fn get_mask(&self, feature_tag: hb_tag_t) -> (u32, u32)

Source

pub fn get_1_mask(&self, feature_tag: hb_tag_t) -> u32

Source

pub fn get_feature_index( &self, table_index: TableIndex, feature_tag: hb_tag_t, ) -> Option<FeatureIndex>

Source

pub fn get_feature_stage( &self, table_index: TableIndex, feature_tag: hb_tag_t, ) -> Option<usize>

Source

pub fn stages(&self, table_index: TableIndex) -> &[StageMap]

Source

pub fn lookup(&self, table_index: TableIndex, index: usize) -> &lookup_map_t

Source

pub fn stage_lookups( &self, table_index: TableIndex, stage: usize, ) -> &[lookup_map_t]

Source

pub fn stage_lookup_range( &self, table_index: TableIndex, stage: usize, ) -> Range<usize>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.