pub enum CSSRuleType {
MediaRule,
SupportsRule,
ContainerRule,
LayerRule,
ScopeRule,
StyleRule,
StartingStyleRule,
NavigationRule,
}Expand description
Enum indicating the type of a CSS rule, used to represent the order of a style rule’s ancestors. This list only contains rule types that are collected during the ancestor rule collection.
Variants§
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 Default for CSSRuleType
impl Default for CSSRuleType
Source§fn default() -> CSSRuleType
fn default() -> CSSRuleType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CSSRuleType
impl<'de> Deserialize<'de> for CSSRuleType
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
Source§impl PartialEq for CSSRuleType
impl PartialEq for CSSRuleType
Source§impl Serialize for CSSRuleType
impl Serialize 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