pub struct ShapeCacheKey {
pub font_id: FontId,
pub font_size_bits: FontSizeBits,
pub text_hash: TextHash,
pub max_width_bits: MaxWidthBits,
pub family_hash: TextHash,
pub line_height_bits: LineHeightBits,
}Expand description
Cache key for the Tier 2 shaping cache.
Fields§
§font_id: FontIdFont face identifier.
font_size_bits: FontSizeBitsFont size quantized to bits.
text_hash: TextHashHash of the text content.
max_width_bits: MaxWidthBitsAvailable width for wrapping, quantized to bits.
u32::MAX represents unbounded (no wrapping).
family_hash: TextHashHash of the font family name.
line_height_bits: LineHeightBitsLine height quantized to bits.
Implementations§
Source§impl ShapeCacheKey
impl ShapeCacheKey
Trait Implementations§
Source§impl Clone for ShapeCacheKey
impl Clone for ShapeCacheKey
Source§fn clone(&self) -> ShapeCacheKey
fn clone(&self) -> ShapeCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShapeCacheKey
Source§impl Debug for ShapeCacheKey
impl Debug for ShapeCacheKey
impl Eq for ShapeCacheKey
Source§impl Hash for ShapeCacheKey
impl Hash for ShapeCacheKey
Source§impl PartialEq for ShapeCacheKey
impl PartialEq for ShapeCacheKey
impl StructuralPartialEq for ShapeCacheKey
Auto Trait Implementations§
impl Freeze for ShapeCacheKey
impl RefUnwindSafe for ShapeCacheKey
impl Send for ShapeCacheKey
impl Sync for ShapeCacheKey
impl Unpin for ShapeCacheKey
impl UnsafeUnpin for ShapeCacheKey
impl UnwindSafe for ShapeCacheKey
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