pub struct FontFamilyKey(/* private fields */);Expand description
Identity an app-supplied face was registered under.
FontFamily::FileBacked and FontFamily::LoadedTypeface name a face by its
files rather than by a name inside the font, so resolution cannot compare
strings from the name table. Hashing the FontFamily value once at
registration and once per resolve keeps the two sides in step without
walking path lists on every frame.
Implementations§
Source§impl FontFamilyKey
impl FontFamilyKey
pub fn of(family: &FontFamily) -> Self
Trait Implementations§
Source§impl Clone for FontFamilyKey
impl Clone for FontFamilyKey
Source§fn clone(&self) -> FontFamilyKey
fn clone(&self) -> FontFamilyKey
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 FontFamilyKey
Source§impl Debug for FontFamilyKey
impl Debug for FontFamilyKey
impl Eq for FontFamilyKey
Source§impl Hash for FontFamilyKey
impl Hash for FontFamilyKey
Source§impl PartialEq for FontFamilyKey
impl PartialEq for FontFamilyKey
impl StructuralPartialEq for FontFamilyKey
Auto Trait Implementations§
impl Freeze for FontFamilyKey
impl RefUnwindSafe for FontFamilyKey
impl Send for FontFamilyKey
impl Sync for FontFamilyKey
impl Unpin for FontFamilyKey
impl UnsafeUnpin for FontFamilyKey
impl UnwindSafe for FontFamilyKey
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