pub enum LineHeight {
Show 14 variants
None,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Tight,
Snug,
Normal,
Relaxed,
Loose,
}Expand description
Re-export core tailwind-rs functionality 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
leading-tight (1.25)
Snug
leading-snug (1.375)
Normal
leading-normal (1.5)
Relaxed
leading-relaxed (1.625)
Loose
leading-loose (2)
Implementations§
Source§impl LineHeight
impl LineHeight
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
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<LineHeight, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LineHeight, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.