pub struct LayoutTable<'a> { /* private fields */ }Expand description
Zero-copy view over a GSUB/GPOS table.
Implementations§
Source§impl<'a> LayoutTable<'a>
impl<'a> LayoutTable<'a>
Sourcepub fn parse(data: &'a [u8], kind: LayoutKind) -> Result<Self, ParseError>
pub fn parse(data: &'a [u8], kind: LayoutKind) -> Result<Self, ParseError>
Parse and validate the layout table header.
§Errors
ParseError::TruncatedTable for short headers;
ParseError::InvalidGlyphFormat when the list offsets fall outside
the table.
Sourcepub const fn kind(&self) -> LayoutKind
pub const fn kind(&self) -> LayoutKind
Which table this view wraps.
Sourcepub fn script_list(&self) -> Result<ScriptList<'a>, ParseError>
pub fn script_list(&self) -> Result<ScriptList<'a>, ParseError>
Sourcepub fn feature_list(&self) -> Result<FeatureList<'a>, ParseError>
pub fn feature_list(&self) -> Result<FeatureList<'a>, ParseError>
Sourcepub fn lookup_list(&self) -> Result<LookupList<'a>, ParseError>
pub fn lookup_list(&self) -> Result<LookupList<'a>, ParseError>
Trait Implementations§
Source§impl<'a> Clone for LayoutTable<'a>
impl<'a> Clone for LayoutTable<'a>
impl<'a> Copy for LayoutTable<'a>
Auto Trait Implementations§
impl<'a> Freeze for LayoutTable<'a>
impl<'a> RefUnwindSafe for LayoutTable<'a>
impl<'a> Send for LayoutTable<'a>
impl<'a> Sync for LayoutTable<'a>
impl<'a> Unpin for LayoutTable<'a>
impl<'a> UnsafeUnpin for LayoutTable<'a>
impl<'a> UnwindSafe for LayoutTable<'a>
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