pub struct ShapeKey {
pub font_id: FontId,
pub text: String,
pub axis_values_hash: u64,
}Expand description
Cache key for a single shaping request.
Fields§
§font_id: FontIdPointer identity of the Arc<[u8]> font bytes.
text: StringThe exact UTF-8 text being shaped.
axis_values_hash: u64Hash of any OpenType variation axis settings in use. Use 0 for
non-variable fonts.
Implementations§
Trait Implementations§
impl Eq for ShapeKey
impl StructuralPartialEq for ShapeKey
Auto Trait Implementations§
impl Freeze for ShapeKey
impl RefUnwindSafe for ShapeKey
impl Send for ShapeKey
impl Sync for ShapeKey
impl Unpin for ShapeKey
impl UnsafeUnpin for ShapeKey
impl UnwindSafe for ShapeKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.