pub enum TextPosition {
Sub,
Super,
Percent(Percent),
}Expand description
20.384 style:text-position
The style:text-position attribute specifies whether text is positioned above or below the baseline:
The value specifies the vertical text position as a percentage of the current font height or it takes one of the values sub or super. Negative percentages or the sub value place the text below the baseline. Positive percentages or the super value place the text above the baseline. If sub or super is specified, the consumer chooses an appropriate text position.
The style:text-position attribute has one or two white space separated values. The first values is of type percent 18.3.23, or is one of: super or sub.
Variants§
Trait Implementations§
Source§impl Clone for TextPosition
impl Clone for TextPosition
Source§fn clone(&self) -> TextPosition
fn clone(&self) -> TextPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextPosition
impl Debug for TextPosition
Source§impl Display for TextPosition
impl Display for TextPosition
Source§impl From<Percent> for TextPosition
impl From<Percent> for TextPosition
Source§impl PartialEq for TextPosition
impl PartialEq for TextPosition
impl Copy for TextPosition
impl StructuralPartialEq for TextPosition
Auto Trait Implementations§
impl Freeze for TextPosition
impl RefUnwindSafe for TextPosition
impl Send for TextPosition
impl Sync for TextPosition
impl Unpin for TextPosition
impl UnwindSafe for TextPosition
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