Struct swc_css_ast::CompoundSelector
source · pub struct CompoundSelector {
pub span: Span,
pub nesting_selector: Option<NestingSelector>,
pub type_selector: Option<Box<TypeSelector>>,
pub subclass_selectors: Vec<SubclassSelector>,
}
Expand description
e.g. foo.c1.c2
Fields§
§span: Span
§nesting_selector: Option<NestingSelector>
“&”
type_selector: Option<Box<TypeSelector>>
§subclass_selectors: Vec<SubclassSelector>
Trait Implementations§
source§impl Clone for CompoundSelector
impl Clone for CompoundSelector
source§fn clone(&self) -> CompoundSelector
fn clone(&self) -> CompoundSelector
Returns a copy 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 CompoundSelector
impl Debug for CompoundSelector
source§impl<'de> Deserialize<'de> for CompoundSelector
impl<'de> Deserialize<'de> for CompoundSelector
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 EqIgnoreSpan for CompoundSelector
impl EqIgnoreSpan for CompoundSelector
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<CompoundSelector> for ComplexSelectorChildren
impl From<CompoundSelector> for ComplexSelectorChildren
source§fn from(v: CompoundSelector) -> Self
fn from(v: CompoundSelector) -> Self
Converts to this type from the input type.
source§impl From<CompoundSelector> for PseudoClassSelectorChildren
impl From<CompoundSelector> for PseudoClassSelectorChildren
source§fn from(v: CompoundSelector) -> Self
fn from(v: CompoundSelector) -> Self
Converts to this type from the input type.
source§impl From<CompoundSelector> for PseudoElementSelectorChildren
impl From<CompoundSelector> for PseudoElementSelectorChildren
source§fn from(v: CompoundSelector) -> Self
fn from(v: CompoundSelector) -> Self
Converts to this type from the input type.