pub enum LineHeight {
Normal,
Number(f32),
Length(Size),
Percent(f32),
Calc(String),
Var(CssVar),
}Expand description
Line height values
Variants§
Normal
Normal line height
Number(f32)
Number (unitless) value
Length(Size)
Length value
Percent(f32)
Percentage value
Calc(String)
Calculated value
Var(CssVar)
CSS variable
Trait Implementations§
Source§impl Clone for LineHeight
impl Clone for LineHeight
Source§fn clone(&self) -> LineHeight
fn clone(&self) -> LineHeight
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 LineHeight
impl Debug for LineHeight
Source§impl Display for LineHeight
impl Display for LineHeight
Source§impl From<CssVar> for LineHeight
impl From<CssVar> 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 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