Struct style::data::ElementStyles [] [src]

pub struct ElementStyles {
    pub primary: Option<Arc<ComputedValues>>,
    pub pseudos: EagerPseudoStyles,
}

The styles associated with a node, including the styles for any pseudo-elements.

Fields

The element's style.

A list of the styles for the element's eagerly-cascaded pseudo-elements.

Methods

impl ElementStyles
[src]

[src]

Returns the primary style.

[src]

Returns the primary style. Panic if no style available.

[src]

Whether this element display value is none.

Trait Implementations

impl Clone for ElementStyles
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for ElementStyles
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for ElementStyles
[src]

[src]

Formats the value using the given formatter. Read more

impl From<ResolvedElementStyles> for ElementStyles
[src]

[src]

Performs the conversion.