pub struct FontVariationAxis { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Information about font variation axes for variable fonts
Implementations§
Source§impl FontVariationAxis
impl FontVariationAxis
pub fn builder() -> FontVariationAxisBuilder
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Human-readable variation name in the default language (normally, “en”).
Sourcepub fn default_value(&self) -> f64
pub fn default_value(&self) -> f64
The default value.
Trait Implementations§
Source§impl Clone for FontVariationAxis
impl Clone for FontVariationAxis
Source§fn clone(&self) -> FontVariationAxis
fn clone(&self) -> FontVariationAxis
Returns a duplicate 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 Debug for FontVariationAxis
impl Debug for FontVariationAxis
Source§impl<'de> Deserialize<'de> for FontVariationAxis
impl<'de> Deserialize<'de> for FontVariationAxis
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
Auto Trait Implementations§
impl Freeze for FontVariationAxis
impl RefUnwindSafe for FontVariationAxis
impl Send for FontVariationAxis
impl Sync for FontVariationAxis
impl Unpin for FontVariationAxis
impl UnwindSafe for FontVariationAxis
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