pub struct CacheKey {
pub font_id: ID,
pub glyph_id: u16,
pub font_size_bits: u32,
pub x_bin: SubpixelBin,
pub y_bin: SubpixelBin,
pub flags: CacheKeyFlags,
}Expand description
Key for building a glyph cache
Fields§
§font_id: IDFont ID
glyph_id: u16Glyph ID
font_size_bits: u32f32 bits of font size
x_bin: SubpixelBinBinning of fractional X offset
y_bin: SubpixelBinBinning of fractional Y offset
flags: CacheKeyFlagsImplementations§
Trait Implementations§
Source§impl Ord for CacheKey
impl Ord for CacheKey
Source§impl PartialOrd for CacheKey
impl PartialOrd for CacheKey
impl Copy for CacheKey
impl Eq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnwindSafe for CacheKey
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