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

pub enum ComputedUrl {
    Invalid(Arc<String>),
    Valid(ServoUrl),
}

The computed value of a CSS url(), resolved relative to the stylesheet URL.

Variants

The url() was invalid or it wasn't specified by the user.

The resolved url() relative to the stylesheet URL.

Methods

impl ComputedUrl
[src]

[src]

Returns the resolved url if it was valid.

Trait Implementations

impl AnimatedValueAsComputed for ComputedUrl
[src]

impl Clone for ComputedUrl
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ComputedUrl
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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