pub struct Family {
pub name: String,
pub aliases: Vec<FontFamilyAliasSet>,
pub generic_family: Option<GenericFontFamily>,
pub assets: Vec<Asset>,
}
Expand description
Represents a font family, its metadata, and its font files.
Fields§
§name: String
Canonical name of the font family.
aliases: Vec<FontFamilyAliasSet>
Alternate names for the font family.
generic_family: Option<GenericFontFamily>
The generic font family that this font belongs to. If this is a specialty font (e.g. for
custom icons), this should be set to None
.
assets: Vec<Asset>
Collection of font files that make up the font family.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Family
impl<'de> Deserialize<'de> for Family
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Family
impl StructuralPartialEq for Family
Auto Trait Implementations§
impl Freeze for Family
impl RefUnwindSafe for Family
impl Send for Family
impl Sync for Family
impl Unpin for Family
impl UnwindSafe for Family
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)