pub struct FontVariationAxisBuilder { /* private fields */ }Expand description
Builder for FontVariationAxis.
Implementations§
Source§impl FontVariationAxisBuilder
impl FontVariationAxisBuilder
Sourcepub fn tag<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn tag<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The font-variation-setting tag (a.k.a. “axis tag”).
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Human-readable variation name in the default language (normally, “en”).
Sourcepub fn min_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn min_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The minimum value (inclusive) the font supports for this tag.
Sourcepub fn max_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn max_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The maximum value (inclusive) the font supports for this tag.
Sourcepub fn default_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn default_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The default value.
Sourcepub fn build(&self) -> Result<FontVariationAxis, FontVariationAxisBuilderError>
pub fn build(&self) -> Result<FontVariationAxis, FontVariationAxisBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for FontVariationAxisBuilder
impl RefUnwindSafe for FontVariationAxisBuilder
impl Send for FontVariationAxisBuilder
impl Sync for FontVariationAxisBuilder
impl Unpin for FontVariationAxisBuilder
impl UnsafeUnpin 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