Struct owned_ttf_parser::cmap::Subtable14
source · pub struct Subtable14<'a> {
records: LazyArray32<'a, VariationSelectorRecord>,
data: &'a [u8],
}
Expand description
A format 14 subtable.
Fields§
§records: LazyArray32<'a, VariationSelectorRecord>
§data: &'a [u8]
Implementations§
source§impl<'a> Subtable14<'a>
impl<'a> Subtable14<'a>
sourcepub fn parse(data: &'a [u8]) -> Option<Subtable14<'a>>
pub fn parse(data: &'a [u8]) -> Option<Subtable14<'a>>
Parses a subtable from raw data.
sourcepub fn glyph_index(
&self,
code_point: u32,
variation: u32,
) -> Option<GlyphVariationResult>
pub fn glyph_index( &self, code_point: u32, variation: u32, ) -> Option<GlyphVariationResult>
Returns a glyph index for a code point.
Trait Implementations§
source§impl<'a> Clone for Subtable14<'a>
impl<'a> Clone for Subtable14<'a>
source§fn clone(&self) -> Subtable14<'a>
fn clone(&self) -> Subtable14<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Subtable14<'_>
impl Debug for Subtable14<'_>
impl<'a> Copy for Subtable14<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subtable14<'a>
impl<'a> RefUnwindSafe for Subtable14<'a>
impl<'a> Send for Subtable14<'a>
impl<'a> Sync for Subtable14<'a>
impl<'a> Unpin for Subtable14<'a>
impl<'a> UnwindSafe for Subtable14<'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