Enum style::values::computed::NumberOrPercentage [] [src]

pub enum NumberOrPercentage {
    Percentage(Percentage),
    Number(Number),
}

Variants

Trait Implementations

impl Clone for NumberOrPercentage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ComputeSquaredDistance for NumberOrPercentage
[src]

[src]

Computes the squared distance between two animatable values.

impl Copy for NumberOrPercentage
[src]

impl Debug for NumberOrPercentage
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl From<NonNegativeLengthOrPercentage> for NumberOrPercentage
[src]

[src]

Performs the conversion.

impl From<NonNegativeNumber> for NumberOrPercentage
[src]

[src]

Performs the conversion.

impl From<LengthOrPercentage> for NumberOrPercentage
[src]

[src]

Performs the conversion.

impl From<Number> for NumberOrPercentage
[src]

[src]

Performs the conversion.