Struct svgtypes::FontShorthand
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)