Struct ttf_parser::cmap::Subtable6
source · pub struct Subtable6<'a> {
pub first_code_point: u16,
pub glyphs: LazyArray16<'a, GlyphId>,
}
Expand description
A format 6 subtable.
Fields§
§first_code_point: u16
First character code of subrange.
glyphs: LazyArray16<'a, GlyphId>
Array of glyph indexes for character codes in the range.
Implementations§
source§impl<'a> Subtable6<'a>
impl<'a> Subtable6<'a>
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.
Returns None
when code_point
is larger than u16
.
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§
impl<'a> Copy for Subtable6<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subtable6<'a>
impl<'a> RefUnwindSafe for Subtable6<'a>
impl<'a> Send for Subtable6<'a>
impl<'a> Sync for Subtable6<'a>
impl<'a> Unpin for Subtable6<'a>
impl<'a> UnwindSafe for Subtable6<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)