pub enum FontSize {
Length(Length),
Percent(f32),
Keyword(FontSizeKeyword),
Larger,
Smaller,
}Variants§
Length(Length)
Percent(f32)
A fraction of the parent’s font size.
Keyword(FontSizeKeyword)
Larger
1.2 times the parent’s font size.
Smaller
The parent’s font size divided by 1.2.
Trait Implementations§
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 UnsafeUnpin 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