Struct style::applicable_declarations::ApplicableDeclarationBlock [] [src]

pub struct ApplicableDeclarationBlock {
    pub source: StyleSource,
    pub specificity: u32,
    // some fields omitted
}

A property declaration together with its precedence among rules of equal specificity so that we can sort them.

This represents the declarations in a given declaration block for a given importance.

Fields

The style source, either a style rule, or a property declaration block.

The specificity of the selector this block is represented by.

Methods

impl ApplicableDeclarationBlock
[src]

[src]

Constructs an applicable declaration block from a given property declaration block and importance.

[src]

Constructs an applicable declaration block from the given components

[src]

Returns the source order of the block.

[src]

Returns the cascade level of the block.

[src]

Convenience method to consume self and return the source alongside the level.

Trait Implementations

impl Clone for ApplicableDeclarationBlock
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ApplicableDeclarationBlock
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.