Struct style::values::computed::length::CSSPixelLength [] [src]

pub struct CSSPixelLength(_);

The computed <length> value.

Methods

impl CSSPixelLength
[src]

[src]

Return a new CSSPixelLength.

[src]

Return the containing pixel value.

[src]

Return the length with app_unit i32 type.

[src]

Return the absolute value of this length.

[src]

Zero value

Trait Implementations

impl Animate for CSSPixelLength
[src]

[src]

Animate a value towards another one, given an animation procedure.

impl Clone for CSSPixelLength
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ComputeSquaredDistance for CSSPixelLength
[src]

[src]

Computes the squared distance between two animatable values.

impl Copy for CSSPixelLength
[src]

impl Debug for CSSPixelLength
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for CSSPixelLength
[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 CSSPixelLength
[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 PartialOrd for CSSPixelLength
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl ToAnimatedValue for CSSPixelLength
[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 ToAnimatedZero for CSSPixelLength
[src]

[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 ToCss for CSSPixelLength
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl Neg for CSSPixelLength
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl From<CSSPixelLength> for Au
[src]

[src]

Performs the conversion.

impl From<Au> for CSSPixelLength
[src]

[src]

Performs the conversion.