pub struct Glyph(pub u32);Expand description
The index of the font character to render
Glyphs are what actually gets rendered to the screen. It might be tempting to think of a glyph like a ‘rendered character.’ In specific scripts, this is often the case. ‘A’ and ‘a’ have distinct glyphs, and are unconditionally the same glyph. In others, this might not be true. See ‘Text Rendering Hates You’ for more information on why text is complicated.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for Glyph
impl Eq for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin for Glyph
impl UnwindSafe for Glyph
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