Struct ttf_parser::cmap::Subtable2
source · [−]pub struct Subtable2<'a> { /* private fields */ }Expand description
A format 2 subtable.
Implementations
sourceimpl<'a> Subtable2<'a>
impl<'a> Subtable2<'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 Subtable2<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Subtable2<'a>
impl<'a> Send for Subtable2<'a>
impl<'a> Sync for Subtable2<'a>
impl<'a> Unpin for Subtable2<'a>
impl<'a> UnwindSafe for Subtable2<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more