pub enum FamilyName {
Named(String),
Generic(GenericSlot),
}Expand description
One element of a fallback stack: a concrete family name or a generic class.
Variants§
Named(String)
A concrete named font family (e.g. “Inter”, “IBM Plex Mono”).
Generic(GenericSlot)
A generic fallback family (e.g. monospace, serif).
Trait Implementations§
Source§impl Clone for FamilyName
impl Clone for FamilyName
Source§impl Debug for FamilyName
impl Debug for FamilyName
impl Eq for FamilyName
Source§impl PartialEq for FamilyName
impl PartialEq for FamilyName
impl StructuralPartialEq for FamilyName
Auto Trait Implementations§
impl Freeze for FamilyName
impl RefUnwindSafe for FamilyName
impl Send for FamilyName
impl Sync for FamilyName
impl Unpin for FamilyName
impl UnsafeUnpin for FamilyName
impl UnwindSafe for FamilyName
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