pub enum CssRule {
CounterStyle(CounterStyleAtRule),
Document(DocumentAtRule),
FontFace(FontFaceAtRule),
FontFeatureValues(FontFeatureValuesAtRule),
Import(ImportAtRule),
Keyframes(KeyframesAtRule),
Media(MediaAtRule),
Namespace(NamespaceAtRule),
Page(PageAtRule),
Style(StyleRule),
Supports(SupportsAtRule),
Viewport(ViewportAtRule),
}
Expand description
No Charset here, CSSCharsetRule has been removed from CSSOM (https://drafts.csswg.org/cssom/#changes-from-5-december-2013) and Edge doesn’t support it
Variants§
CounterStyle(CounterStyleAtRule)
@counter-style
Document(DocumentAtRule)
@document
FontFace(FontFaceAtRule)
@font-face
FontFeatureValues(FontFeatureValuesAtRule)
@font-feature-values
Import(ImportAtRule)
@import
Keyframes(KeyframesAtRule)
@keyframes
Media(MediaAtRule)
@media
Namespace(NamespaceAtRule)
@namespace
Page(PageAtRule)
@page
Style(StyleRule)
Style rules, eg div { width: 10%; }
Supports(SupportsAtRule)
@supports
Viewport(ViewportAtRule)
@viewport
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CssRule
impl RefUnwindSafe for CssRule
impl !Send for CssRule
impl !Sync for CssRule
impl Unpin for CssRule
impl UnwindSafe for CssRule
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