Enum cssparser::AtRuleType
[−]
[src]
pub enum AtRuleType<P, R> {
WithoutBlock(R),
WithBlock(P),
OptionalBlock(P),
}The return value for AtRuleParser::parse_prelude.
Indicates whether the at-rule is expected to have a { /* ... */ } block
or end with a ; semicolon.
Variants
WithoutBlock(R)The at-rule is expected to end with a ; semicolon. Example: @import.
The value is the finished representation of an at-rule
as returned by RuleListParser::next or DeclarationListParser::next.
WithBlock(P)The at-rule is expected to have a a { /* ... */ } block. Example: @media
The value is the representation of the "prelude" part of the rule.
OptionalBlock(P)The at-rule may either have a block or end with a semicolon.
This is mostly for testing. As of this writing no real CSS at-rule behaves like this.
The value is the representation of the "prelude" part of the rule.