pub struct AtRule {
pub name: String,
pub prelude: Vec<ComponentValue>,
pub declarations: Option<Vec<Declaration>>,
pub child_rules: Option<Vec<Rule>>,
}Expand description
§5.2 L1639-1650: An at-rule has a name, a prelude (list of component values), and optionally a list of declarations and a list of child rules (only for “block at-rules” ending in a {}-block).
Fields§
§name: StringThe at-rule name (e.g. “media”, “import”). Does not include the
leading @.
prelude: Vec<ComponentValue>The prelude: component values between the name and the block or semicolon.
declarations: Option<Vec<Declaration>>Block at-rules only: declarations inside the {}-block. None
for statement at-rules (ending in ;).
child_rules: Option<Vec<Rule>>Block at-rules only: child rules inside the {}-block. None
for statement at-rules.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AtRule
impl Freeze for AtRule
impl RefUnwindSafe for AtRule
impl Send for AtRule
impl Sync for AtRule
impl Unpin for AtRule
impl UnsafeUnpin for AtRule
impl UnwindSafe for AtRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more