pub enum LineHeight {
Normal,
Points(Points),
Multiple(f32),
Em(f32),
}Expand description
CSS’s line-height (lineHeight).
Variants§
Normal
The font’s own (normal).
Points(Points)
Points ("20px").
Multiple(f32)
A multiple of the font size, which nested texts take with their own
size (a number: 1.5).
Em(f32)
A multiple of the element’s own font size, which nested texts take
as points ("1.5em", "150%").
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 Default for LineHeight
impl Default for LineHeight
Source§impl From<AbsoluteLength> for LineHeight
impl From<AbsoluteLength> for LineHeight
Source§fn from(length: AbsoluteLength) -> Self
fn from(length: AbsoluteLength) -> Self
Converts to this type from the input type.
Source§impl From<Points> for LineHeight
impl From<Points> for LineHeight
Source§impl From<Rems> for LineHeight
impl From<Rems> for LineHeight
Source§impl IntoReactive<LineHeight> for LineHeight
impl IntoReactive<LineHeight> for LineHeight
Source§fn into_reactive(self) -> Reactive<LineHeight>
fn into_reactive(self) -> Reactive<LineHeight>
As a
Reactive.Source§impl IntoReactive<LineHeight> for Points
impl IntoReactive<LineHeight> for Points
Source§fn into_reactive(self) -> Reactive<LineHeight>
fn into_reactive(self) -> Reactive<LineHeight>
As a
Reactive.Source§impl IntoReactive<LineHeight> for Rems
impl IntoReactive<LineHeight> for Rems
Source§fn into_reactive(self) -> Reactive<LineHeight>
fn into_reactive(self) -> Reactive<LineHeight>
As a
Reactive.Source§impl IntoReactive<LineHeight> for AbsoluteLength
impl IntoReactive<LineHeight> for AbsoluteLength
Source§fn into_reactive(self) -> Reactive<LineHeight>
fn into_reactive(self) -> Reactive<LineHeight>
As a
Reactive.Source§impl PartialEq for LineHeight
impl PartialEq for LineHeight
impl StructuralPartialEq for LineHeight
Auto Trait Implementations§
impl Forget for LineHeight
impl Freeze for LineHeight
impl Move 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