Struct ttf_parser::cmap::Subtable0
source · pub struct Subtable0<'a> {
pub glyph_ids: &'a [u8],
}
Expand description
A format 0 subtable.
Fields§
§glyph_ids: &'a [u8]
Just a list of 256 8bit glyph IDs.
Implementations§
source§impl<'a> Subtable0<'a>
impl<'a> Subtable0<'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.
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 Subtable0<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subtable0<'a>
impl<'a> RefUnwindSafe for Subtable0<'a>
impl<'a> Send for Subtable0<'a>
impl<'a> Sync for Subtable0<'a>
impl<'a> Unpin for Subtable0<'a>
impl<'a> UnwindSafe for Subtable0<'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
)