#[repr(u16)]pub enum CssRuleType {
Show 16 variants
Unknown = 0,
Style = 1,
Charset = 2,
Import = 3,
Media = 4,
FontFace = 5,
Page = 6,
Keyframes = 7,
Keyframe = 8,
Margin = 9,
Namespace = 10,
CounterStyle = 11,
Supports = 12,
Document = 13,
FontFeatureValues = 14,
Viewport = 15,
}
Variants§
Unknown = 0
Obsolete and now reserved https://drafts.csswg.org/cssom/#the-cssrule-interface
Style = 1
Charset = 2
Import = 3
Media = 4
FontFace = 5
Page = 6
Keyframes = 7
Keyframe = 8
Margin = 9
Namespace = 10
CounterStyle = 11
Supports = 12
Document = 13
FontFeatureValues = 14
Viewport = 15
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 Hash for CssRuleType
impl Hash for CssRuleType
Source§impl Ord for CssRuleType
impl Ord for CssRuleType
Source§fn cmp(&self, other: &CssRuleType) -> Ordering
fn cmp(&self, other: &CssRuleType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CssRuleType
impl PartialEq for CssRuleType
Source§impl PartialOrd for CssRuleType
impl PartialOrd for CssRuleType
impl Copy for CssRuleType
impl Eq 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 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