pub enum FontSize {
Level {
level: FontLevel,
},
Custom {
size: f64,
},
}
Variants§
Implementations§
Source§impl FontSize
impl FontSize
pub const EXTRA_LARGE_TITLE2: Self
pub const EXTRA_LARGE_TITLE: Self
pub const LARGE_TITLE: Self
pub const TITLE: Self
pub const TITLE2: Self
pub const TITLE3: Self
pub const HEADLINE: Self
pub const SUBHEADLINE: Self
pub const BODY: Self
pub const CALLOUT: Self
pub const CAPTION: Self
pub const CAPTION2: Self
pub const FOOTNOTE: Self
pub const fn level(level: FontLevel) -> Self
pub const fn custom(size: f64) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FontSize
impl<'de> Deserialize<'de> for FontSize
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
impl Copy 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