Struct owned_ttf_parser::cmap::Subtable12
source · pub struct Subtable12<'a> { /* private fields */ }
Expand description
A format 12 subtable.
Implementations§
source§impl<'a> Subtable12<'a>
impl<'a> Subtable12<'a>
sourcepub fn parse(data: &'a [u8]) -> Option<Subtable12<'a>>
pub fn parse(data: &'a [u8]) -> Option<Subtable12<'a>>
Parses a subtable from raw data.
sourcepub fn glyph_index(&self, code_point: u32) -> Option<GlyphId>
pub fn glyph_index(&self, code_point: u32) -> Option<GlyphId>
Returns a glyph index for a code point.
sourcepub fn codepoints(&self, f: impl FnMut(u32))
pub fn codepoints(&self, f: impl FnMut(u32))
Calls f
for each codepoint defined in this table.
Trait Implementations§
source§impl<'a> Clone for Subtable12<'a>
impl<'a> Clone for Subtable12<'a>
source§fn clone(&self) -> Subtable12<'a>
fn clone(&self) -> Subtable12<'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 Subtable12<'_>
impl Debug for Subtable12<'_>
impl<'a> Copy for Subtable12<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Subtable12<'a>
impl<'a> Send for Subtable12<'a>
impl<'a> Sync for Subtable12<'a>
impl<'a> Unpin for Subtable12<'a>
impl<'a> UnwindSafe for Subtable12<'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