pub enum LineHeightStyleValue {
Normal(Ident),
Number(Number),
LengthPercentage(LengthPercentage),
}Expand description
Represents the style value for line-height as defined in css-inline-3.
The line-height CSS property sets the spacing between text baselines, oriented to the horizontal or vertical writing mode.
The grammar is defined as:
normal | <number [0,∞]> | <length-percentage [0,∞]>Variants§
Trait Implementations§
Source§impl Clone for LineHeightStyleValue
impl Clone for LineHeightStyleValue
Source§fn clone(&self) -> LineHeightStyleValue
fn clone(&self) -> LineHeightStyleValue
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 LineHeightStyleValue
impl Debug for LineHeightStyleValue
Source§impl Hash for LineHeightStyleValue
impl Hash for LineHeightStyleValue
Source§impl Ord for LineHeightStyleValue
impl Ord for LineHeightStyleValue
Source§fn cmp(&self, other: &LineHeightStyleValue) -> Ordering
fn cmp(&self, other: &LineHeightStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for LineHeightStyleValue
impl<'a> Parse<'a> for LineHeightStyleValue
Source§impl PartialEq for LineHeightStyleValue
impl PartialEq for LineHeightStyleValue
Source§impl PartialOrd for LineHeightStyleValue
impl PartialOrd for LineHeightStyleValue
Source§impl<'a> Peek<'a> for LineHeightStyleValue
impl<'a> Peek<'a> for LineHeightStyleValue
Source§impl ToCursors for LineHeightStyleValue
impl ToCursors for LineHeightStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for LineHeightStyleValue
impl StructuralPartialEq for LineHeightStyleValue
Auto Trait Implementations§
impl Freeze for LineHeightStyleValue
impl RefUnwindSafe for LineHeightStyleValue
impl Send for LineHeightStyleValue
impl Sync for LineHeightStyleValue
impl Unpin for LineHeightStyleValue
impl UnwindSafe for LineHeightStyleValue
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