Skip to main content

SubtableInfo

Struct SubtableInfo 

Source
pub struct SubtableInfo {
    pub kind: SubtableKind,
    pub offset: u32,
    pub digest: hb_set_digest_t,
    pub apply_fns: [fn(&mut hb_ot_apply_context_t<'_>, &SubtableExternalCache, &[u8]) -> Option<()>; 2],
    pub external_cache: SubtableExternalCache,
}
Expand description

Cached information about a subtable.

Fields§

§kind: SubtableKind

The fully resolved type of the subtable.

§offset: u32

Byte offset to the subtable from the base of the GSUB or GPOS table.

§digest: hb_set_digest_t§apply_fns: [fn(&mut hb_ot_apply_context_t<'_>, &SubtableExternalCache, &[u8]) -> Option<()>; 2]§external_cache: SubtableExternalCache

Implementations§

Source§

impl SubtableInfo

Source

pub(crate) fn apply( &self, ctx: &mut hb_ot_apply_context_t<'_>, table_data: &[u8], is_cached: bool, ) -> Option<()>

Source§

impl SubtableInfo

Source

fn new( table_data: FontData<'_>, subtable_offset: u32, is_subst: bool, lookup_type: u8, cache_mode: SubtableExternalCacheMode, ) -> Option<(Self, u32)>

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.