pub enum LineHeight {
Show 15 variants
None,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Tight,
Snug,
Normal,
Relaxed,
Loose,
Custom(f32),
}
Expand description
Line height values
Variants§
None
None line height
Three
leading-3 (0.75rem / 12px)
Four
leading-4 (1rem / 16px)
Five
leading-5 (1.25rem / 20px)
Six
leading-6 (1.5rem / 24px)
Seven
leading-7 (1.75rem / 28px)
Eight
leading-8 (2rem / 32px)
Nine
leading-9 (2.25rem / 36px)
Ten
leading-10 (2.5rem / 40px)
Tight
Tight line height
Snug
Snug line height
Normal
Normal line height
Relaxed
Relaxed line height
Loose
Loose line height
Custom(f32)
Custom line height (f32)
Implementations§
Source§impl LineHeight
impl LineHeight
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
Sourcepub fn all_values() -> Vec<LineHeight>
pub fn all_values() -> Vec<LineHeight>
Get all available line height values
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<'de> Deserialize<'de> for LineHeight
impl<'de> Deserialize<'de> for LineHeight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LineHeight
impl Display for LineHeight
Source§impl Hash for LineHeight
impl Hash for LineHeight
Source§impl PartialEq for LineHeight
impl PartialEq for LineHeight
Source§impl Serialize for LineHeight
impl Serialize for LineHeight
impl Copy for LineHeight
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.