Enum swc_css_ast::SubclassSelector
source · [−]pub enum SubclassSelector {
Id(IdSelector),
Class(ClassSelector),
Attr(AttrSelector),
PseudoClass(PseudoClassSelector),
PseudoElement(PseudoElementSelector),
At(AtSelector),
}
Variants
Id(IdSelector)
Class(ClassSelector)
Attr(AttrSelector)
PseudoClass(PseudoClassSelector)
PseudoElement(PseudoElementSelector)
At(AtSelector)
Implementations
Returns Some
if self
is a reference of variant Id
, and None
otherwise.
Returns Some
if self
is of variant Id
, and None
otherwise.
Returns Some
if self
is a reference of variant Class
, and None
otherwise.
Returns Some
if self
is of variant Class
, and None
otherwise.
Returns Some
if self
is a reference of variant Attr
, and None
otherwise.
Returns Some
if self
is of variant Attr
, and None
otherwise.
Returns true
if self
is of variant PseudoClass
.
Returns Some
if self
is a reference of variant PseudoClass
, and None
otherwise.
Unwraps the value, yielding the content of PseudoClass
.
Panics
Panics if the value is not PseudoClass
, with a panic message including the content of self
.
Returns Some
if self
is of variant PseudoClass
, and None
otherwise.
Returns true
if self
is of variant PseudoElement
.
Returns Some
if self
is a reference of variant PseudoElement
, and None
otherwise.
Unwraps the value, yielding the content of PseudoElement
.
Panics
Panics if the value is not PseudoElement
, with a panic message including the content of self
.
Returns Some
if self
is of variant PseudoElement
, and None
otherwise.
Returns Some
if self
is a reference of variant At
, and None
otherwise.
Returns Some
if self
is of variant At
, and None
otherwise.
Trait Implementations
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SubclassSelector
impl Send for SubclassSelector
impl Sync for SubclassSelector
impl Unpin for SubclassSelector
impl UnwindSafe for SubclassSelector
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more