Struct LayoutTable

Source
pub struct LayoutTable<T> {
    pub opt_script_list: Option<ScriptList>,
    pub opt_feature_list: Option<FeatureList>,
    pub opt_lookup_list: Option<LookupList<T>>,
    pub opt_feature_variations: Option<FeatureVariationsOwned>,
}

Fields§

§opt_script_list: Option<ScriptList>§opt_feature_list: Option<FeatureList>§opt_lookup_list: Option<LookupList<T>>§opt_feature_variations: Option<FeatureVariationsOwned>

Implementations§

Source§

impl<T> LayoutTable<T>

Source

pub fn find_script( &self, script_tag: u32, ) -> Result<Option<&ScriptTable>, ParseError>

Source

pub fn find_script_or_default( &self, script_tag: u32, ) -> Result<Option<&ScriptTable>, ParseError>

Source

pub fn find_langsys_feature( &self, langsys: &LangSys, feature_tag: u32, feature_variations: Option<&FeatureTableSubstitution<'_>>, ) -> Result<Option<Cow<'_, FeatureTable>>, ParseError>

Source

pub fn feature_by_index( &self, feature_index: u16, ) -> Result<&FeatureRecord, ParseError>

Source

pub fn feature_variations<'a>( &'a self, tuple: Option<Tuple<'a>>, ) -> Result<Option<FeatureTableSubstitution<'a>>, ParseError>

Trait Implementations§

Source§

impl<T> ReadBinary for LayoutTable<T>

Source§

type HostType<'a> = LayoutTable<T>

Source§

fn read<'a>(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>

Auto Trait Implementations§

§

impl<T> Freeze for LayoutTable<T>

§

impl<T> RefUnwindSafe for LayoutTable<T>
where T: RefUnwindSafe,

§

impl<T> Send for LayoutTable<T>
where T: Send,

§

impl<T> Sync for LayoutTable<T>
where T: Sync,

§

impl<T> Unpin for LayoutTable<T>
where T: Unpin,

§

impl<T> UnwindSafe for LayoutTable<T>
where T: UnwindSafe,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ReadBinaryDep for T
where T: ReadBinary,

Source§

type Args<'a> = ()

Source§

type HostType<'a> = <T as ReadBinary>::HostType<'a>

Source§

fn read_dep<'a>( ctxt: &mut ReadCtxt<'a>, _: <T as ReadBinaryDep>::Args<'_>, ) -> Result<<T as ReadBinaryDep>::HostType<'a>, ParseError>

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.