Struct style::font_face::FontWeightRange
source · pub struct FontWeightRange(pub AbsoluteFontWeight, pub AbsoluteFontWeight);
Expand description
The font-weight descriptor:
https://drafts.csswg.org/css-fonts-4/#descdef-font-face-font-weight
Tuple Fields§
§0: AbsoluteFontWeight
§1: AbsoluteFontWeight
Implementations§
source§impl FontWeightRange
impl FontWeightRange
sourcepub fn compute(&self) -> ComputedFontWeightRange
pub fn compute(&self) -> ComputedFontWeightRange
Returns a computed font-stretch range.
Trait Implementations§
source§impl Clone for FontWeightRange
impl Clone for FontWeightRange
source§fn clone(&self) -> FontWeightRange
fn clone(&self) -> FontWeightRange
Returns a copy 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 FontWeightRange
impl Debug for FontWeightRange
source§impl Parse for FontWeightRange
impl Parse for FontWeightRange
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
source§impl PartialEq for FontWeightRange
impl PartialEq for FontWeightRange
source§fn eq(&self, other: &FontWeightRange) -> bool
fn eq(&self, other: &FontWeightRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToCss for FontWeightRange
impl ToCss for FontWeightRange
source§impl ToShmem for FontWeightRange
impl ToShmem for FontWeightRange
impl StructuralPartialEq for FontWeightRange
Auto Trait Implementations§
impl Freeze for FontWeightRange
impl RefUnwindSafe for FontWeightRange
impl Send for FontWeightRange
impl Sync for FontWeightRange
impl Unpin for FontWeightRange
impl UnwindSafe for FontWeightRange
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert