pub enum TypeRole {
Display,
H1,
H2,
Body,
Caption,
Code,
}Expand description
Which type role .display(), .h1() and the others select.
Variants§
Display
Largest title.
H1
Page title.
H2
Section title.
Body
Running text.
Caption
Secondary text.
Code
Monospace.
Trait Implementations§
impl Copy for TypeRole
impl Eq for TypeRole
impl StructuralPartialEq for TypeRole
Auto Trait Implementations§
impl Freeze 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