Enum style::properties::longhands::font_stretch::computed_value::T
[−]
pub enum T {
Normal,
UltraCondensed,
ExtraCondensed,
Condensed,
SemiCondensed,
SemiExpanded,
Expanded,
ExtraExpanded,
UltraExpanded,
}Variants
NormalUltraCondensedExtraCondensedCondensedSemiCondensedSemiExpandedExpandedExtraExpandedUltraExpanded
Methods
impl T
pub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<T, ParseError<'i>>
Parse this property from a CSS input stream.
pub fn from_ident(ident: &str) -> Result<T, ()>
Parse this property from an already-tokenized identifier.
Trait Implementations
impl Clone for T
fn clone(&self) -> T
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for T
impl Debug for T
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for T
impl Hash for T
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for T
fn eq(&self, __arg_0: &T) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl MallocSizeOf for T
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl ToCss for T
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write,
W: Write,
Serialize self in CSS syntax, writing to dest.
fn to_css_string(&self) -> String[src]
Serialize self in CSS syntax and return a string. Read more
impl Parse for T[src]
fn parse<'i, 't>(
_: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>[src]
_: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
impl Animate for FontStretch[src]
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>[src]
Animate a value towards another one, given an animation procedure.
impl ComputeSquaredDistance for FontStretch[src]
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>[src]
Computes the squared distance between two animatable values.
impl ToAnimatedZero for FontStretch[src]
fn to_animated_zero(&self) -> Result<Self, ()>[src]
Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation's "by-animation" where SMIL first interpolates from the zero value to the 'by' value, and then adds the result to the underlying value. Read more
impl From<FontStretch> for f64[src]
We should treat font stretch as real number in order to interpolate this property. https://drafts.csswg.org/css-fonts-3/#font-stretch-animation
fn from(stretch: FontStretch) -> f64[src]
Performs the conversion.
impl Into<FontStretch> for f64[src]
fn into(self) -> FontStretch[src]
Performs the conversion.