pub enum LineHeight {
Normal,
Factor(f64),
}Expand description
lineHeight: 'normal' | number | string.
The JS runs parseFloat over whatever it is given and falls back to the
natural height when the result is not finite, so a string like "1.5" and
the number 1.5 are the same input. LineHeight::parse does that
conversion, which leaves only the two outcomes the JS can actually reach.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LineHeight
impl Clone for LineHeight
impl Copy for LineHeight
Source§impl Debug for LineHeight
impl Debug for LineHeight
Source§impl PartialEq for LineHeight
impl PartialEq for LineHeight
impl StructuralPartialEq for LineHeight
Auto Trait Implementations§
impl Freeze for LineHeight
impl RefUnwindSafe for LineHeight
impl Send for LineHeight
impl Sync for LineHeight
impl Unpin for LineHeight
impl UnsafeUnpin for LineHeight
impl UnwindSafe for LineHeight
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