pub struct TypeScale {
pub label: f32,
pub body: f32,
pub heading: f32,
}Expand description
Essential label/body/heading sizes in logical pixels, each 16..=256, with
label <= body <= heading. Raw authoring value; checked on theme adoption.
Fields§
§label: f32§body: f32§heading: f32Implementations§
Source§impl TypeScale
impl TypeScale
Sourcepub fn try_scaled(self, factor: f32) -> Result<TypeScale, ThemeError>
pub fn try_scaled(self, factor: f32) -> Result<TypeScale, ThemeError>
Explicit enlargement by finite factor >= 1. Reject overflow/size cap; never clamp or shrink to fit. See the module’s executable theme recipe.
Trait Implementations§
impl Copy for TypeScale
impl StructuralPartialEq for TypeScale
Auto Trait Implementations§
impl Freeze for TypeScale
impl RefUnwindSafe for TypeScale
impl Send for TypeScale
impl Sync for TypeScale
impl Unpin for TypeScale
impl UnwindSafe for TypeScale
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