Enum swc_css_ast::SubclassSelector [−][src]
pub enum SubclassSelector {
Id(IdSelector),
Class(ClassSelector),
Attr(AttrSelector),
Pseudo(PseudoSelector),
At(AtSelector),
}
Variants
Tuple Fields of Id
0: IdSelector
Tuple Fields of Class
Tuple Fields of Attr
0: AttrSelector
Tuple Fields of Pseudo
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