pub enum FontSize {
Show 13 variants
Xs,
Sm,
Base,
Lg,
Xl,
Xl2,
Xl3,
Xl4,
Xl5,
Xl6,
Xl7,
Xl8,
Xl9,
}Expand description
Re-export core tailwind-rs functionality Font size values
Variants§
Xs
Extra small font size
Sm
Small font size
Base
Base font size
Lg
Large font size
Xl
Extra large font size
Xl2
2x large font size
Xl3
3x large font size
Xl4
4x large font size
Xl5
5x large font size
Xl6
6x large font size
Xl7
7x large font size
Xl8
8x large font size
Xl9
9x large font size
Implementations§
Source§impl FontSize
impl FontSize
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FontSize
impl<'de> Deserialize<'de> for FontSize
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FontSize, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FontSize, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FontSize
impl Serialize for FontSize
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 FontSize
impl Eq for FontSize
impl StructuralPartialEq for FontSize
Auto Trait Implementations§
impl Freeze for FontSize
impl RefUnwindSafe for FontSize
impl Send for FontSize
impl Sync for FontSize
impl Unpin for FontSize
impl UnwindSafe for FontSize
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.