pub enum TypeRole {
Show 15 variants
BodyLarge,
BodyMedium,
BodySmall,
DisplayLarge,
DisplayMedium,
DisplaySmall,
HeadlineLarge,
HeadlineMedium,
HeadlineSmall,
LabelLarge,
LabelMedium,
LabelSmall,
TitleLarge,
TitleMedium,
TitleSmall,
}Expand description
One of the fifteen Material text roles.
Variants§
BodyLarge
Large body copy (16 sp).
BodyMedium
Default body copy (14 sp).
BodySmall
Small body or supporting copy (12 sp).
DisplayLarge
Largest display headline (57 sp).
DisplayMedium
Medium display headline (45 sp).
DisplaySmall
Small display headline (36 sp).
HeadlineLarge
Large section headline (32 sp).
HeadlineMedium
Medium section headline (28 sp).
HeadlineSmall
Small section headline (24 sp).
LabelLarge
Prominent control label (14 sp).
LabelMedium
Standard control label (12 sp).
LabelSmall
Compact label or badge text (11 sp).
TitleLarge
Large title (22 sp).
TitleMedium
Medium title (16 sp).
TitleSmall
Small title (14 sp).
Implementations§
Trait Implementations§
impl Copy for TypeRole
impl Eq for TypeRole
impl StructuralPartialEq for TypeRole
Auto Trait Implementations§
impl Forget for TypeRole
impl Freeze for TypeRole
impl Move for TypeRole
impl RefUnwindSafe for TypeRole
impl Send for TypeRole
impl Sync for TypeRole
impl Unpin for TypeRole
impl UnsafeUnpin for TypeRole
impl UnwindSafe for TypeRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.