pub enum FontRef {
Asset(u32),
System(String),
Generic(GenericFamily),
}Expand description
One candidate.
Variants§
Asset(u32)
A font the application registered as an asset, by id: CSS @font-face.
System(String)
A family installed on the machine, by name.
Generic(GenericFamily)
A family CSS names without naming a font.
Trait Implementations§
impl Eq for FontRef
impl StructuralPartialEq for FontRef
Auto Trait Implementations§
impl Freeze for FontRef
impl RefUnwindSafe for FontRef
impl Send for FontRef
impl Sync for FontRef
impl Unpin for FontRef
impl UnsafeUnpin for FontRef
impl UnwindSafe for FontRef
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