pub enum CSSRuleType {
STYLE_RULE,
MEDIA_RULE,
KEYFRAMES_RULE,
IMPORT_RULE,
FONT_FACE_RULE,
SUPPORTS_RULE,
}Expand description
CSSRule 类型枚举
Variants§
STYLE_RULE
样式规则: selector { … }
MEDIA_RULE
媒体规则: @media { … }
KEYFRAMES_RULE
关键帧规则: @keyframes { … }
IMPORT_RULE
导入规则: @import
FONT_FACE_RULE
字体规则: @font-face
SUPPORTS_RULE
支持规则: @supports
Trait Implementations§
Source§impl Clone for CSSRuleType
impl Clone for CSSRuleType
Source§fn clone(&self) -> CSSRuleType
fn clone(&self) -> CSSRuleType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CSSRuleType
impl Debug for CSSRuleType
Source§impl PartialEq for CSSRuleType
impl PartialEq for CSSRuleType
impl StructuralPartialEq for CSSRuleType
Auto Trait Implementations§
impl Freeze for CSSRuleType
impl RefUnwindSafe for CSSRuleType
impl Send for CSSRuleType
impl Sync for CSSRuleType
impl Unpin for CSSRuleType
impl UnsafeUnpin for CSSRuleType
impl UnwindSafe for CSSRuleType
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