pub enum AtRule {
Media {
condition: String,
rules: Vec<RuleSet>,
span: Range<usize>,
},
Import {
path: String,
media: Option<String>,
span: Range<usize>,
},
FontFace {
declarations: Vec<Declaration>,
span: Range<usize>,
},
Keyframes {
name: String,
keyframes: Vec<(String, Vec<Declaration>)>,
span: Range<usize>,
},
Other {
name: String,
content: String,
span: Range<usize>,
},
}Expand description
CSS at-rule variant.
Variants§
Media
Media query rule (e.g., @media screen and (max-width: 600px)).
Fields
Import
Import rule (e.g., @import "style.css").
Fields
FontFace
Font face rule (e.g., @font-face).
Fields
§
declarations: Vec<Declaration>The font face declarations.
Keyframes
Keyframes rule (e.g., @keyframes animation).
Fields
§
keyframes: Vec<(String, Vec<Declaration>)>The keyframe rules.
Other
Other at-rules.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AtRule
impl<'de> Deserialize<'de> for AtRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AtRule
Auto Trait Implementations§
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