#[repr(C)]pub struct TypeSpec {
pub size: u8,
pub weight: u16,
pub family: FamilyRole,
}Expand description
One style’s size (sp/pt/px), weight (100..=900, rounded to the nearest 100) and font role.
Fields§
§size: u8§weight: u16§family: FamilyRoleImplementations§
Trait Implementations§
impl Copy for TypeSpec
Source§impl<'de> Deserialize<'de> for TypeSpec
impl<'de> Deserialize<'de> for TypeSpec
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 TypeSpec
impl StructuralPartialEq for TypeSpec
Auto Trait Implementations§
impl Freeze for TypeSpec
impl RefUnwindSafe for TypeSpec
impl Send for TypeSpec
impl Sync for TypeSpec
impl Unpin for TypeSpec
impl UnsafeUnpin for TypeSpec
impl UnwindSafe for TypeSpec
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