pub struct FontScale(pub u16);Expand description
Relative font-height multiplier, stored as hundredths
(100 = 1.0×, 160 = 1.6×). Fixed-point rather than f32 so
Style stays Eq + Hash (the theme is content-hashed into the
cell-matrix version). An authoring StyleSpec carries an f32
ratio; resolution quantizes it here.
Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for FontScale
impl Eq for FontScale
impl StructuralPartialEq for FontScale
Auto Trait Implementations§
impl Freeze for FontScale
impl RefUnwindSafe for FontScale
impl Send for FontScale
impl Sync for FontScale
impl Unpin for FontScale
impl UnsafeUnpin for FontScale
impl UnwindSafe for FontScale
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