pub struct TypeStyle {
pub size: f64,
pub weight: f64,
pub line_height: f64,
}Expand description
One text role: size in pixels, weight 100..=900, line height as a multiple.
Fields§
§size: f64Font size in pixels.
weight: f64100..=900.
line_height: f64Multiple of the font size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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