use crate::style::Length;
#[derive(Clone, Copy, Debug, PartialEq, Default)]
pub struct LineHeight(Length);
impl LineHeight {
pub fn new<L>(value: L) -> Self
where
L: Into<Length>,
{
Self(value.into())
}
pub const fn value(&self) -> Length {
self.0
}
}
impl<L> From<L> for LineHeight
where
L: Into<Length>,
{
fn from(value: L) -> Self {
Self::new(value)
}
}