pub enum CssElementType {
Show 13 variants
SourceFile,
RuleSet,
SelectorList,
Selector,
DeclarationBlock,
Declaration,
Property,
Value,
AtRule,
MediaQuery,
Function,
Url,
CalcExpression,
}Expand description
CSS element type
Variants§
SourceFile
Source file (root)
RuleSet
Rule set
SelectorList
Selector list
Selector
Selector
DeclarationBlock
Declaration block
Declaration
Declaration
Property
Property
Value
Value
AtRule
At-rule
MediaQuery
Media query
Function
Function
Url
Url
CalcExpression
Calc expression
Trait Implementations§
Source§impl Clone for CssElementType
impl Clone for CssElementType
Source§fn clone(&self) -> CssElementType
fn clone(&self) -> CssElementType
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 CssElementType
impl Debug for CssElementType
Source§impl<'de> Deserialize<'de> for CssElementType
impl<'de> Deserialize<'de> for CssElementType
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 ElementType for CssElementType
impl ElementType for CssElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<CssTokenType> for CssElementType
impl From<CssTokenType> for CssElementType
Source§fn from(token: CssTokenType) -> Self
fn from(token: CssTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for CssElementType
impl Hash for CssElementType
Source§impl Ord for CssElementType
impl Ord for CssElementType
Source§fn cmp(&self, other: &CssElementType) -> Ordering
fn cmp(&self, other: &CssElementType) -> 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 CssElementType
impl PartialEq for CssElementType
Source§impl PartialOrd for CssElementType
impl PartialOrd for CssElementType
Source§impl Serialize for CssElementType
impl Serialize for CssElementType
impl Copy for CssElementType
impl Eq for CssElementType
impl StructuralPartialEq for CssElementType
Auto Trait Implementations§
impl Freeze for CssElementType
impl RefUnwindSafe for CssElementType
impl Send for CssElementType
impl Sync for CssElementType
impl Unpin for CssElementType
impl UnwindSafe for CssElementType
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