pub struct FontVariationAxisBuilder { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Implementations§
Source§impl FontVariationAxisBuilder
impl FontVariationAxisBuilder
Sourcepub fn tag(&mut self, v: String) -> &mut Self
pub fn tag(&mut self, v: String) -> &mut Self
The font-variation-setting tag (a.k.a. “axis tag”).
Sourcepub fn name(&mut self, v: String) -> &mut Self
pub fn name(&mut self, v: String) -> &mut Self
Human-readable variation name in the default language (normally, “en”).
Sourcepub fn min_value(&mut self, v: f64) -> &mut Self
pub fn min_value(&mut self, v: f64) -> &mut Self
The minimum value (inclusive) the font supports for this tag.
Sourcepub fn max_value(&mut self, v: f64) -> &mut Self
pub fn max_value(&mut self, v: f64) -> &mut Self
The maximum value (inclusive) the font supports for this tag.
Sourcepub fn default_value(&mut self, v: f64) -> &mut Self
pub fn default_value(&mut self, v: f64) -> &mut Self
The default value.
pub fn build(&mut self) -> Result<FontVariationAxis, &'static str>
Trait Implementations§
Source§impl Clone for FontVariationAxisBuilder
impl Clone for FontVariationAxisBuilder
Source§fn clone(&self) -> FontVariationAxisBuilder
fn clone(&self) -> FontVariationAxisBuilder
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 FontVariationAxisBuilder
impl Debug for FontVariationAxisBuilder
Auto Trait Implementations§
impl Freeze for FontVariationAxisBuilder
impl RefUnwindSafe for FontVariationAxisBuilder
impl Send for FontVariationAxisBuilder
impl Sync for FontVariationAxisBuilder
impl Unpin for FontVariationAxisBuilder
impl UnwindSafe for FontVariationAxisBuilder
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