pub struct GlyphKey { /* private fields */ }Expand description
Cache key uniquely identifying a rasterized glyph bitmap.
Implementations§
Source§impl GlyphKey
Construction helpers for GlyphKey.
impl GlyphKey
Construction helpers for GlyphKey.
Sourcepub fn from_style(
codepoint: char,
physical_size: f32,
weight: FontWeight,
) -> Self
pub fn from_style( codepoint: char, physical_size: f32, weight: FontWeight, ) -> Self
Trait Implementations§
impl Copy for GlyphKey
impl Eq for GlyphKey
Source§impl Ord for GlyphKey
impl Ord for GlyphKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for GlyphKey
impl PartialOrd for GlyphKey
impl StructuralPartialEq for GlyphKey
Auto Trait Implementations§
impl Forget for GlyphKey
impl Freeze for GlyphKey
impl Move 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