pub struct Font {
pub family: Option<Variable<Vec<FontFamily>>>,
pub style: Option<Variable<FontStyle>>,
pub variant: Option<Variable<FontVariant>>,
pub weight: Option<Variable<FontWeight>>,
pub size: Option<Variable<Length>>,
pub stretch: Option<Variable<FontStretch>>,
}Expand description
Shorthand property for setting ‘font-style’, ‘font-variant’, ‘font-weight’, ‘font-size’, ‘line-height’ and ‘font-family’.
Fields§
§family: Option<Variable<Vec<FontFamily>>>§style: Option<Variable<FontStyle>>§variant: Option<Variable<FontVariant>>§weight: Option<Variable<FontWeight>>§size: Option<Variable<Length>>§stretch: Option<Variable<FontStretch>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Font
impl<'de> Deserialize<'de> for Font
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
Source§impl Deserialize for Font
impl Deserialize for Font
type Value = Font
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
Derserialize this value from given
derserializer.Source§impl PartialOrd for Font
impl PartialOrd for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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