pub enum TextRole {
Show 14 variants
DisplayOne,
DisplayTwo,
DisplayThree,
HeadingOne,
HeadingTwo,
HeadingThree,
HeadingFour,
HeadingFive,
HeadingSix,
Large,
Body,
Label,
Supporting,
Code,
}Expand description
文本角色(Astryx --text-* 三件套:size / weight / leading)。
角色的 size / weight 通过 var() 引用字号 / 字重阶梯,所以调
Scales::text_base 时整套角色跟着变。
Variants§
DisplayOne
DisplayTwo
DisplayThree
HeadingOne
HeadingTwo
HeadingThree
HeadingFour
HeadingFive
HeadingSix
Large
Body
Label
Supporting
Code
Implementations§
Trait Implementations§
impl Copy for TextRole
impl Eq for TextRole
Source§impl Ord for TextRole
impl Ord for TextRole
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TextRole
impl PartialOrd for TextRole
impl StructuralPartialEq for TextRole
Auto Trait Implementations§
impl Freeze for TextRole
impl RefUnwindSafe for TextRole
impl Send for TextRole
impl Sync for TextRole
impl Unpin for TextRole
impl UnsafeUnpin for TextRole
impl UnwindSafe for TextRole
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