pub struct MappedGlyph {
pub id: GlyphId,
pub advance: f32,
}Expand description
A character’s glyph and advance at the map’s size.
Fields§
§id: GlyphIdThe glyph the font draws for the character.
advance: f32Horizontal advance in pixels.
Trait Implementations§
Source§impl Clone for MappedGlyph
impl Clone for MappedGlyph
impl Copy for MappedGlyph
Source§impl Debug for MappedGlyph
impl Debug for MappedGlyph
Source§impl PartialEq for MappedGlyph
impl PartialEq for MappedGlyph
impl StructuralPartialEq for MappedGlyph
Auto Trait Implementations§
impl Freeze for MappedGlyph
impl RefUnwindSafe for MappedGlyph
impl Send for MappedGlyph
impl Sync for MappedGlyph
impl Unpin for MappedGlyph
impl UnsafeUnpin for MappedGlyph
impl UnwindSafe for MappedGlyph
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