pub struct TypeStyle {
pub typeface: Typeface,
pub size: f32,
pub line_height: f32,
pub tracking: f32,
pub weight: u16,
}Expand description
Material type metrics in scale-independent units (sp).
Fields§
§typeface: Typeface§size: f32§line_height: f32§tracking: f32§weight: u16Trait Implementations§
impl Copy for TypeStyle
impl StructuralPartialEq for TypeStyle
Auto Trait Implementations§
impl Forget for TypeStyle
impl Freeze for TypeStyle
impl Move for TypeStyle
impl RefUnwindSafe for TypeStyle
impl Send for TypeStyle
impl Sync for TypeStyle
impl Unpin for TypeStyle
impl UnsafeUnpin for TypeStyle
impl UnwindSafe for TypeStyle
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