pub enum LineHeightSpec {
Multiplier(f32),
Px(f32),
}Expand description
Resolved CSS line-height: either a multiplier of the element’s font
size (unitless, e.g. line-height: 1.5) or an absolute value in
logical pixels (line-height: 24px).
Mirrors lumen_ir::layout_ir::LineHeightSpec field-for-field;
duplicated here because lumen-core cannot depend on lumen-ir
(lumen-ir already depends on lumen-core, so the reverse edge would
cycle). The runtime converts between the two 1:1 at the IR/ECS
boundary (spawn, restyle).
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LineHeightSpec
impl Clone for LineHeightSpec
Source§fn clone(&self) -> LineHeightSpec
fn clone(&self) -> LineHeightSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LineHeightSpec
impl Debug for LineHeightSpec
Source§impl PartialEq for LineHeightSpec
impl PartialEq for LineHeightSpec
Source§fn eq(&self, other: &LineHeightSpec) -> bool
fn eq(&self, other: &LineHeightSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LineHeightSpec
impl StructuralPartialEq for LineHeightSpec
Auto Trait Implementations§
impl Freeze for LineHeightSpec
impl RefUnwindSafe for LineHeightSpec
impl Send for LineHeightSpec
impl Sync for LineHeightSpec
impl Unpin for LineHeightSpec
impl UnsafeUnpin for LineHeightSpec
impl UnwindSafe for LineHeightSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.