pub enum Length {
Em(LengthNum),
Ex(LengthNum),
Mm(LengthNum),
Cm(LengthNum),
In(LengthNum),
Px(LengthNum),
Pt(LengthNum),
Pc(LengthNum),
}Expand description
Units of length recognized by reStructuredText.
Variants§
Em(LengthNum)
em unit, the element’s font size
Ex(LengthNum)
ex unit, x-height of the element’s font size
Mm(LengthNum)
Millimeters
Cm(LengthNum)
Centimeters.
In(LengthNum)
Inches. 1in == 2.54 cm == 96 px.
Px(LengthNum)
Pt(LengthNum)
Points. 1pt == 1/72 in
Pc(LengthNum)
Picas. 1 pc == 1/6 in == 12 pt
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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