Enum swc_css_ast::SubclassSelector [−][src]
pub enum SubclassSelector {
Id(IdSelector),
Class(ClassSelector),
Attr(AttrSelector),
Pseudo(PseudoSelector),
At(AtSelector),
}
Variants
Id(IdSelector)
Tuple Fields of Id
0: IdSelector
Class(ClassSelector)
Tuple Fields of Class
Attr(AttrSelector)
Tuple Fields of Attr
0: AttrSelector
Pseudo(PseudoSelector)
Tuple Fields of Pseudo
At(AtSelector)
Tuple Fields of At
0: AtSelector
Implementations
Returns Some
if self
is of variant Id
, and None
otherwise.
Returns Some
if self
is of variant Class
, and None
otherwise.
Returns Some
if self
is of variant Attr
, and None
otherwise.
Returns Some
if self
is of variant Pseudo
, and None
otherwise.
Returns Some
if self
is of variant At
, and None
otherwise.
Trait Implementations
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.
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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