Enum style::values::specified::length::NoCalcLength [] [src]

pub enum NoCalcLength {
    Absolute(AbsoluteLength),
    FontRelative(FontRelativeLength),
    ViewportPercentage(ViewportPercentageLength),
    ServoCharacterWidth(CharacterWidth),
}

A <length> without taking calc expressions into account

https://drafts.csswg.org/css-values/#lengths

Variants

An absolute length

https://drafts.csswg.org/css-values/#absolute-length

A font-relative length:

https://drafts.csswg.org/css-values/#font-relative-lengths

A viewport-relative length.

https://drafts.csswg.org/css-values/#viewport-relative-lengths

HTML5 "character width", as defined in HTML5 § 14.5.4.

This cannot be specified by the user directly and is only generated by Stylist::synthesize_rules_for_legacy_attributes().

Methods

impl NoCalcLength
[src]

[src]

Parse a given absolute or relative dimension.

[src]

Returns a zero length.

[src]

Checks whether the length value is zero.

[src]

Get a px value without context.

[src]

Get an absolute length from a px value.

Trait Implementations

impl ToComputedValue for NoCalcLength
[src]

The computed value type we're going to be converted to.

[src]

Convert a specified value to a computed value, using itself and the data inside the Context. Read more

[src]

Convert a computed value to specified value form. Read more

impl Clone for NoCalcLength
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for NoCalcLength
[src]

impl Debug for NoCalcLength
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for NoCalcLength
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl PartialEq for NoCalcLength
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl ToCss for NoCalcLength
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more

impl Mul<CSSFloat> for NoCalcLength
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl From<NoCalcLength> for Length
[src]

[src]

Performs the conversion.

impl From<NoCalcLength> for NonNegativeLength
[src]

[src]

Performs the conversion.

impl From<NoCalcLength> for LengthOrPercentage
[src]

[src]

Performs the conversion.

impl From<NoCalcLength> for LengthOrPercentageOrAuto
[src]

[src]

Performs the conversion.

impl From<NoCalcLength> for NonNegativeLengthOrPercentage
[src]

[src]

Performs the conversion.