pub struct TypographyScale {
pub display: TextStyleToken,
pub headline: TextStyleToken,
pub title: TextStyleToken,
pub body: TextStyleToken,
pub caption: TextStyleToken,
pub overline: TextStyleToken,
}Expand description
The set of named typographic roles for a theme, largest to smallest.
Fields§
§display: TextStyleTokenLargest display text (hero headings).
headline: TextStyleTokenSection headline.
title: TextStyleTokenSubsection title.
body: TextStyleTokenBody / paragraph text.
caption: TextStyleTokenSmall caption / helper text.
overline: TextStyleTokenSmallest overline / label text (often uppercased).
Implementations§
Source§impl TypographyScale
impl TypographyScale
Sourcepub fn roles_descending(&self) -> [TextStyleToken; 6]
pub fn roles_descending(&self) -> [TextStyleToken; 6]
All roles ordered largest → smallest by size.
Trait Implementations§
Source§impl Clone for TypographyScale
impl Clone for TypographyScale
Source§fn clone(&self) -> TypographyScale
fn clone(&self) -> TypographyScale
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypographyScale
impl Debug for TypographyScale
Source§impl Default for TypographyScale
impl Default for TypographyScale
Source§impl PartialEq for TypographyScale
impl PartialEq for TypographyScale
Source§fn eq(&self, other: &TypographyScale) -> bool
fn eq(&self, other: &TypographyScale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TypographyScale
impl StructuralPartialEq for TypographyScale
Auto Trait Implementations§
impl Freeze for TypographyScale
impl RefUnwindSafe for TypographyScale
impl Send for TypographyScale
impl Sync for TypographyScale
impl Unpin for TypographyScale
impl UnsafeUnpin for TypographyScale
impl UnwindSafe for TypographyScale
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