pub struct FontUsage(/* private fields */);Expand description
Explicit font-source observations shared by rendering workers for one export.
Implementations§
Source§impl FontUsage
impl FontUsage
Sourcepub fn record(&self, font: FontIdentity)
pub fn record(&self, font: FontIdentity)
Records a selected face once, including when its outline came from a cache.
Sourcepub fn fonts(&self) -> Vec<FontIdentity>
pub fn fonts(&self) -> Vec<FontIdentity>
Returns stable face ordering independent of worker completion order.
Trait Implementations§
Auto Trait Implementations§
impl Forget for FontUsage
impl Freeze for FontUsage
impl Move for FontUsage
impl RefUnwindSafe for FontUsage
impl Send for FontUsage
impl Sync for FontUsage
impl Unpin for FontUsage
impl UnsafeUnpin for FontUsage
impl UnwindSafe for FontUsage
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