Struct owned_ttf_parser::cmap::Subtable10
source · pub struct Subtable10<'a> {
pub first_code_point: u32,
pub glyphs: LazyArray32<'a, GlyphId>,
}
Expand description
A format 10 subtable.
Fields§
§first_code_point: u32
First character code covered.
glyphs: LazyArray32<'a, GlyphId>
Array of glyph indices for the character codes covered.
Implementations§
source§impl<'a> Subtable10<'a>
impl<'a> Subtable10<'a>
sourcepub fn parse(data: &'a [u8]) -> Option<Subtable10<'a>>
pub fn parse(data: &'a [u8]) -> Option<Subtable10<'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 Subtable10<'a>
impl<'a> Clone for Subtable10<'a>
source§fn clone(&self) -> Subtable10<'a>
fn clone(&self) -> Subtable10<'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<'a> Debug for Subtable10<'a>
impl<'a> Debug for Subtable10<'a>
impl<'a> Copy for Subtable10<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subtable10<'a>
impl<'a> RefUnwindSafe for Subtable10<'a>
impl<'a> Send for Subtable10<'a>
impl<'a> Sync for Subtable10<'a>
impl<'a> Unpin for Subtable10<'a>
impl<'a> UnwindSafe for Subtable10<'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