pub enum FontKey<'a> {
Id(FontId),
Descriptor(FamilyKey<'a>, Attributes),
}
Expand description
Key used to select a font from a library.
Variants§
Id(FontId)
Font identifier.
Descriptor(FamilyKey<'a>, Attributes)
Descriptor with family and attributes.
Trait Implementations§
Source§impl<'a> From<(&'a str, Attributes)> for FontKey<'a>
impl<'a> From<(&'a str, Attributes)> for FontKey<'a>
Source§fn from(desc: (&'a str, Attributes)) -> Self
fn from(desc: (&'a str, Attributes)) -> Self
Converts to this type from the input type.
Source§impl<'a> From<(FamilyKey<'a>, Attributes)> for FontKey<'a>
impl<'a> From<(FamilyKey<'a>, Attributes)> for FontKey<'a>
Source§fn from(desc: (FamilyKey<'a>, Attributes)) -> Self
fn from(desc: (FamilyKey<'a>, Attributes)) -> Self
Converts to this type from the input type.
Source§impl From<(GenericFamily, Attributes)> for FontKey<'_>
impl From<(GenericFamily, Attributes)> for FontKey<'_>
Source§fn from(desc: (GenericFamily, Attributes)) -> Self
fn from(desc: (GenericFamily, Attributes)) -> Self
Converts to this type from the input type.
Source§impl From<GenericFamily> for FontKey<'_>
impl From<GenericFamily> for FontKey<'_>
Source§fn from(family: GenericFamily) -> Self
fn from(family: GenericFamily) -> Self
Converts to this type from the input type.
impl<'a> Copy for FontKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for FontKey<'a>
impl<'a> RefUnwindSafe for FontKey<'a>
impl<'a> Send for FontKey<'a>
impl<'a> Sync for FontKey<'a>
impl<'a> Unpin for FontKey<'a>
impl<'a> UnwindSafe for FontKey<'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