Struct style::font_face::FontFaceRuleData [] [src]

pub struct FontFaceRuleData {
    pub family: Option<FamilyName>,
    pub sources: Option<Vec<Source>>,
    pub source_location: SourceLocation,
}

Data inside a @font-face rule.

https://drafts.csswg.org/css-fonts/#font-face-rule

Fields

The name of this font face

The alternative sources for this font face.

Line and column of the @font-face rule source code.

Methods

impl FontFaceRuleData
[src]

[src]

Per https://github.com/w3c/csswg-drafts/issues/1133 an @font-face rule is valid as far as the CSS parser is concerned even if it doesn’t have a font-family or src declaration.

However both are required for the rule to represent an actual font face.

impl FontFaceRule
[src]

[src]

Trait Implementations

impl Clone for FontFaceRuleData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FontFaceRuleData
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for FontFaceRuleData
[src]

impl PartialEq for FontFaceRuleData
[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 ToCssWithGuard for FontFaceRuleData
[src]

[src]

Serialize self in CSS syntax, writing to dest, using the given lock guard.

[src]

Serialize self in CSS syntax using the given lock guard and return a string. Read more