pub struct AvarTable<'a> { /* private fields */ }Expand description
Zero-copy view over the avar table.
Implementations§
Source§impl<'a> AvarTable<'a>
impl<'a> AvarTable<'a>
Sourcepub fn parse(data: &'a [u8]) -> Result<Self, ParseError>
pub fn parse(data: &'a [u8]) -> Result<Self, ParseError>
Parse and validate the avar table.
§Errors
ParseError::TruncatedTable / ParseError::InvalidGlyphFormat
for short or inconsistent tables.
Sourcepub const fn axis_count(&self) -> u16
pub const fn axis_count(&self) -> u16
Declared axis count of the segment map array.
Sourcepub fn segment_maps(&self) -> Result<Vec<SegmentMap>, ParseError>
pub fn segment_maps(&self) -> Result<Vec<SegmentMap>, ParseError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AvarTable<'a>
impl<'a> RefUnwindSafe for AvarTable<'a>
impl<'a> Send for AvarTable<'a>
impl<'a> Sync for AvarTable<'a>
impl<'a> Unpin for AvarTable<'a>
impl<'a> UnsafeUnpin for AvarTable<'a>
impl<'a> UnwindSafe for AvarTable<'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