pub struct Shorthand {
pub style: String,
pub variant: String,
pub weight: String,
pub stretch: String,
pub size: String,
pub line_height: LineHeight,
pub family: Vec<String>,
}Expand description
The components of a parsed font shorthand. Each property defaults to "normal"
when not specified, matching the CSS font shorthand.
Fields§
§style: Stringfont-style, e.g. "normal", "italic", "oblique".
variant: Stringfont-variant, e.g. "normal", "small-caps".
weight: Stringfont-weight, e.g. "normal", "bold", "400".
stretch: Stringfont-stretch, e.g. "normal", "condensed".
size: Stringfont-size, e.g. "12px", "1em", "x-large".
line_height: LineHeightline-height.
family: Vec<String>The font-family list, in order, with surrounding quotes removed.
Trait Implementations§
impl StructuralPartialEq for Shorthand
Auto Trait Implementations§
impl Freeze for Shorthand
impl RefUnwindSafe for Shorthand
impl Send for Shorthand
impl Sync for Shorthand
impl Unpin for Shorthand
impl UnsafeUnpin for Shorthand
impl UnwindSafe for Shorthand
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