pub struct FontShorthand<'a> {
pub font_style: Option<&'a str>,
pub font_variant: Option<&'a str>,
pub font_weight: Option<&'a str>,
pub font_stretch: Option<&'a str>,
pub font_size: &'a str,
pub font_family: &'a str,
}
Expand description
The values of a font
shorthand.
Fields§
§font_style: Option<&'a str>
The font style.
font_variant: Option<&'a str>
The font variant.
font_weight: Option<&'a str>
The font weight.
font_stretch: Option<&'a str>
The font stretch.
font_size: &'a str
The font size.
font_family: &'a str
The font family.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for FontShorthand<'a>
impl<'a> Clone for FontShorthand<'a>
Source§fn clone(&self) -> FontShorthand<'a>
fn clone(&self) -> FontShorthand<'a>
Returns a copy 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<'a> Debug for FontShorthand<'a>
impl<'a> Debug for FontShorthand<'a>
Source§impl<'a> Hash for FontShorthand<'a>
impl<'a> Hash for FontShorthand<'a>
Source§impl<'a> PartialEq for FontShorthand<'a>
impl<'a> PartialEq for FontShorthand<'a>
impl<'a> Eq for FontShorthand<'a>
impl<'a> StructuralPartialEq for FontShorthand<'a>
Auto Trait Implementations§
impl<'a> Freeze for FontShorthand<'a>
impl<'a> RefUnwindSafe for FontShorthand<'a>
impl<'a> Send for FontShorthand<'a>
impl<'a> Sync for FontShorthand<'a>
impl<'a> Unpin for FontShorthand<'a>
impl<'a> UnwindSafe for FontShorthand<'a>
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