#[repr(C)]pub struct TypeScale {
pub display: Option<TypeSpec>,
pub headline: Option<TypeSpec>,
pub title: Option<TypeSpec>,
pub subtitle: Option<TypeSpec>,
pub body: Option<TypeSpec>,
pub emphasis: Option<TypeSpec>,
pub caption: Option<TypeSpec>,
}Expand description
The app’s type scale: one optional TypeSpec per text style. title also sets the scaffold’s
top-bar title and headline the sheet titles. Sizes are sp/pt/px and still follow the platform’s
text-size accessibility setting.
Fields§
§display: Option<TypeSpec>§headline: Option<TypeSpec>§title: Option<TypeSpec>§subtitle: Option<TypeSpec>§body: Option<TypeSpec>§emphasis: Option<TypeSpec>§caption: Option<TypeSpec>Trait Implementations§
impl Copy for TypeScale
Source§impl<'de> Deserialize<'de> for TypeScale
impl<'de> Deserialize<'de> for TypeScale
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq 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 UnsafeUnpin 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