pub struct GlyphKey {
pub character: char,
pub font: String,
}Expand description
The key that identifies one glyph in the atlas.
The font string is part of the key because the same character renders differently in different fonts, and the atlas holds one rasterisation per combination.
Fields§
§character: charThe character the glyph stands for.
font: StringThe CSS font shorthand the glyph was rasterised with.
Trait Implementations§
impl Eq for GlyphKey
impl StructuralPartialEq for GlyphKey
Auto Trait Implementations§
impl Freeze for GlyphKey
impl RefUnwindSafe for GlyphKey
impl Send for GlyphKey
impl Sync for GlyphKey
impl Unpin for GlyphKey
impl UnsafeUnpin for GlyphKey
impl UnwindSafe for GlyphKey
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