Struct owned_ttf_parser::cmap::Subtable13
source · pub struct Subtable13<'a> {
groups: LazyArray32<'a, SequentialMapGroup>,
}
Expand description
A format 13 subtable.
Fields§
§groups: LazyArray32<'a, SequentialMapGroup>
Implementations§
source§impl<'a> Subtable13<'a>
impl<'a> Subtable13<'a>
sourcepub fn parse(data: &'a [u8]) -> Option<Subtable13<'a>>
pub fn parse(data: &'a [u8]) -> Option<Subtable13<'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 Subtable13<'a>
impl<'a> Clone for Subtable13<'a>
source§fn clone(&self) -> Subtable13<'a>
fn clone(&self) -> Subtable13<'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 Subtable13<'_>
impl Debug for Subtable13<'_>
impl<'a> Copy for Subtable13<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subtable13<'a>
impl<'a> RefUnwindSafe for Subtable13<'a>
impl<'a> Send for Subtable13<'a>
impl<'a> Sync for Subtable13<'a>
impl<'a> Unpin for Subtable13<'a>
impl<'a> UnwindSafe for Subtable13<'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