Struct allsorts::layout::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>>,
}
Fields
opt_script_list: Option<ScriptList>
opt_feature_list: Option<FeatureList>
opt_lookup_list: Option<LookupList<T>>
Implementations
sourceimpl<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
) -> Result<Option<&FeatureTable>, ParseError>
pub fn feature_by_index(
&self,
feature_index: u16
) -> Result<&FeatureRecord, ParseError>
Trait Implementations
sourceimpl<'a, T> ReadBinary<'a> for LayoutTable<T>
impl<'a, T> ReadBinary<'a> for LayoutTable<T>
type HostType = LayoutTable<T>
fn read(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more