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>
impl<T> LayoutTable<T>
pub fn find_script( &self, script_tag: u32, ) -> Result<Option<&ScriptTable>, ParseError>
pub fn find_script_or_default( &self, script_tag: u32, ) -> Result<Option<&ScriptTable>, ParseError>
pub fn find_langsys_feature( &self, langsys: &LangSys, feature_tag: u32, feature_variations: Option<&FeatureTableSubstitution<'_>>, ) -> Result<Option<Cow<'_, FeatureTable>>, ParseError>
pub fn feature_by_index( &self, feature_index: u16, ) -> Result<&FeatureRecord, ParseError>
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>
impl<T> ReadBinary for LayoutTable<T>
type HostType<'a> = LayoutTable<T>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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