pub enum Baseline {
Normal,
Super,
Sub,
}Expand description
Which line a glyph sits on relative to the text around it.
Not a Role, because a raised glyph keeps whatever it already was — the
1 of a footnote reference is still a link, an author’s ^2^ inside a
heading is still heading text. And not one of Style’s bool flags,
because unlike bold-and-italic these do not compose: a glyph is raised, or
lowered, or neither, and two flags would let a caller ask for both.
A frontend that ignores this draws every glyph on the normal baseline, which is what every frontend did before the variant existed.
Variants§
Normal
The ordinary text baseline.
Super
Raised and typically drawn smaller — an author’s ^x^, and the label of
a footnote reference.
Sub
Lowered and typically drawn smaller — an author’s ~x~.
Trait Implementations§
impl Copy for Baseline
impl Eq for Baseline
impl StructuralPartialEq for Baseline
Auto Trait Implementations§
impl Freeze for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baseline
impl Sync for Baseline
impl Unpin for Baseline
impl UnsafeUnpin for Baseline
impl UnwindSafe for Baseline
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