Struct style::data::EagerPseudoStyles [] [src]

pub struct EagerPseudoStyles(_);

A lazily-allocated list of styles for eagerly-cascaded pseudo-elements.

We use an Arc so that sharing these styles via the style sharing cache does not require duplicate allocations. We leverage the copy-on-write semantics of Arc::make_mut(), which is free (i.e. does not require atomic RMU operations) in servo_arc.

Methods

impl EagerPseudoStyles
[src]

[src]

Returns whether there are any pseudo styles.

[src]

Grabs a reference to the list of styles, if they exist.

[src]

Grabs a reference to the list of styles or a list of None if there are no styles to be had.

[src]

Returns a reference to the style for a given eager pseudo, if it exists.

[src]

Sets the style for the eager pseudo.

Trait Implementations

impl Clone for EagerPseudoStyles
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EagerPseudoStyles
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for EagerPseudoStyles
[src]

[src]

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