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 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.
source§impl Hash for CompoundSelector
impl Hash for CompoundSelector
source§impl PartialEq for CompoundSelector
impl PartialEq for CompoundSelector
source§fn eq(&self, other: &CompoundSelector) -> bool
fn eq(&self, other: &CompoundSelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Spanned for CompoundSelector
impl Spanned for CompoundSelector
impl Eq for CompoundSelector
impl StructuralEq for CompoundSelector
impl StructuralPartialEq for CompoundSelector
Auto Trait Implementations§
impl RefUnwindSafe for CompoundSelector
impl Send for CompoundSelector
impl Sync for CompoundSelector
impl Unpin for CompoundSelector
impl UnwindSafe for CompoundSelector
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