pub enum FamilyKey<'a> {
Id(FamilyId),
Generic(GenericFamily),
Name(&'a str),
}
Expand description
Key used to select a font family from a library.
Variants§
Trait Implementations§
Source§impl From<GenericFamily> for FamilyKey<'_>
impl From<GenericFamily> for FamilyKey<'_>
Source§fn from(family: GenericFamily) -> Self
fn from(family: GenericFamily) -> Self
Converts to this type from the input type.
impl<'a> Copy for FamilyKey<'a>
impl<'a> Eq for FamilyKey<'a>
impl<'a> StructuralPartialEq for FamilyKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for FamilyKey<'a>
impl<'a> RefUnwindSafe for FamilyKey<'a>
impl<'a> Send for FamilyKey<'a>
impl<'a> Sync for FamilyKey<'a>
impl<'a> Unpin for FamilyKey<'a>
impl<'a> UnwindSafe for FamilyKey<'a>
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