pub struct FontVariationAxis<'a> { /* private fields */ }Expand description
Information about font variation axes for variable fonts
Implementations§
Source§impl<'a> FontVariationAxis<'a>
impl<'a> FontVariationAxis<'a>
Sourcepub fn builder(
tag: impl Into<Cow<'a, str>>,
name: impl Into<Cow<'a, str>>,
min_value: f64,
max_value: f64,
default_value: f64,
) -> FontVariationAxisBuilder<'a>
pub fn builder( tag: impl Into<Cow<'a, str>>, name: impl Into<Cow<'a, str>>, min_value: f64, max_value: f64, default_value: f64, ) -> FontVariationAxisBuilder<'a>
Creates a builder for this type with the required parameters:
tag: The font-variation-setting tag (a.k.a. “axis tag”).name: Human-readable variation name in the default language (normally, “en”).min_value: The minimum value (inclusive) the font supports for this tag.max_value: The maximum value (inclusive) the font supports for this tag.default_value: The default value.
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<'a> Clone for FontVariationAxis<'a>
impl<'a> Clone for FontVariationAxis<'a>
Source§fn clone(&self) -> FontVariationAxis<'a>
fn clone(&self) -> FontVariationAxis<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FontVariationAxis<'a>
impl<'a> Debug for FontVariationAxis<'a>
Source§impl<'a> Default for FontVariationAxis<'a>
impl<'a> Default for FontVariationAxis<'a>
Source§fn default() -> FontVariationAxis<'a>
fn default() -> FontVariationAxis<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for FontVariationAxis<'a>
impl<'de, 'a> Deserialize<'de> for FontVariationAxis<'a>
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<'a> Freeze for FontVariationAxis<'a>
impl<'a> RefUnwindSafe for FontVariationAxis<'a>
impl<'a> Send for FontVariationAxis<'a>
impl<'a> Sync for FontVariationAxis<'a>
impl<'a> Unpin for FontVariationAxis<'a>
impl<'a> UnsafeUnpin for FontVariationAxis<'a>
impl<'a> UnwindSafe for FontVariationAxis<'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