pub struct NominalGlyphs<'a> {
pub(crate) infos: &'a mut [GlyphInfo],
}Expand description
A batch of codepoints and writable nominal glyphs.
Nominal glyphs must be written for consecutive codepoints starting at
the first entry; mapping stops at the first codepoint the font has no
glyph for, and the number of glyphs written is returned from
FontFuncs::nominal_glyphs.
Fields§
§infos: &'a mut [GlyphInfo]Implementations§
Source§impl<'a> NominalGlyphs<'a>
impl<'a> NominalGlyphs<'a>
Source§impl NominalGlyphs<'_>
impl NominalGlyphs<'_>
Sourceconst GLYPH_OFFSET: usize
const GLYPH_OFFSET: usize
Byte offset of the output glyph id within a batch entry.
Sourcepub fn into_raw(self) -> RawNominalGlyphs
pub fn into_raw(self) -> RawNominalGlyphs
Returns a raw C-style view over this batch.
Trait Implementations§
Source§impl<'a> IntoIterator for NominalGlyphs<'a>
impl<'a> IntoIterator for NominalGlyphs<'a>
Auto Trait Implementations§
impl<'a> !UnwindSafe for NominalGlyphs<'a>
impl<'a> Freeze for NominalGlyphs<'a>
impl<'a> RefUnwindSafe for NominalGlyphs<'a>
impl<'a> Send for NominalGlyphs<'a>
impl<'a> Sync for NominalGlyphs<'a>
impl<'a> Unpin for NominalGlyphs<'a>
impl<'a> UnsafeUnpin for NominalGlyphs<'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