Struct style::font_face::FontStretchRange
source · pub struct FontStretchRange(pub FontStretch, pub FontStretch);
Expand description
The font-stretch descriptor:
https://drafts.csswg.org/css-fonts-4/#descdef-font-face-font-stretch
Tuple Fields§
§0: FontStretch
§1: FontStretch
Implementations§
source§impl FontStretchRange
impl FontStretchRange
sourcepub fn compute(&self) -> ComputedFontStretchRange
pub fn compute(&self) -> ComputedFontStretchRange
Returns a computed font-stretch range.
Trait Implementations§
source§impl Clone for FontStretchRange
impl Clone for FontStretchRange
source§fn clone(&self) -> FontStretchRange
fn clone(&self) -> FontStretchRange
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 FontStretchRange
impl Debug for FontStretchRange
source§impl Parse for FontStretchRange
impl Parse for FontStretchRange
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 FontStretchRange
impl PartialEq for FontStretchRange
source§impl ToCss for FontStretchRange
impl ToCss for FontStretchRange
source§impl ToShmem for FontStretchRange
impl ToShmem for FontStretchRange
impl StructuralPartialEq for FontStretchRange
Auto Trait Implementations§
impl Freeze for FontStretchRange
impl RefUnwindSafe for FontStretchRange
impl Send for FontStretchRange
impl Sync for FontStretchRange
impl Unpin for FontStretchRange
impl UnwindSafe for FontStretchRange
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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