Struct cosmic_text::CacheKey
source · [−]pub struct CacheKey {
pub font_id: ID,
pub glyph_id: u16,
pub font_size: i32,
pub x_bin: SubpixelBin,
pub y_bin: SubpixelBin,
}Expand description
Key for building a glyph cache
Fields
font_id: IDFont ID
glyph_id: u16Glyph ID
font_size: i32Font size in pixels
x_bin: SubpixelBinBinning of fractional X offset
y_bin: SubpixelBinBinning of fractional Y offset
Implementations
Trait Implementations
impl Copy for CacheKey
impl Eq for CacheKey
impl StructuralEq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnwindSafe for CacheKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more