Type Definition style::values::computed::length::NonNegativeLength [] [src]

type NonNegativeLength = NonNegative<Length>;

A wrapper of Length, whose value must be >= 0.

Methods

impl NonNegativeLength
[src]

[src]

Create a NonNegativeLength.

[src]

Return a zero value.

[src]

Return the pixel value of |NonNegativeLength|.

[src]

Ensures it is non negative

[src]

Scale this NonNegativeLength. We scale NonNegativeLength by zero if the factor is negative because it doesn't make sense to scale a negative factor on a non-negative length.

Trait Implementations

impl ToAnimatedValue for ComputedNonNegativeLength
[src]

The type of the animated value.

[src]

Converts this value to an animated value.

[src]

Converts back an animated value into a computed value.

impl From<NonNegativeLength> for NonNegativeLengthOrPercentage
[src]

[src]

Performs the conversion.

impl Add<NonNegativeLength> for NonNegativeLength
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl From<Length> for NonNegativeLength
[src]

[src]

Performs the conversion.

impl From<Au> for NonNegativeLength
[src]

[src]

Performs the conversion.

impl From<NonNegativeLength> for Au
[src]

[src]

Performs the conversion.

impl From<NonNegativeLength> for SVGWidth
[src]

[src]

Performs the conversion.