Enum swc_css_visit::AstParentKind
source · pub enum AstParentKind {
Show 161 variants
TokenAndSpan(TokenAndSpanField),
SimpleBlock(SimpleBlockField),
ComponentValue(ComponentValueField),
Ident(IdentField),
CustomIdent(CustomIdentField),
CustomPropertyName(CustomPropertyNameField),
DashedIdent(DashedIdentField),
Str(StrField),
Integer(IntegerField),
Number(NumberField),
Declaration(DeclarationField),
DeclarationName(DeclarationNameField),
ImportantFlag(ImportantFlagField),
QualifiedRule(QualifiedRuleField),
QualifiedRulePrelude(QualifiedRulePreludeField),
StyleBlock(StyleBlockField),
DeclarationOrAtRule(DeclarationOrAtRuleField),
Delimiter(DelimiterField),
FunctionName(FunctionNameField),
Function(FunctionField),
Color(ColorField),
AbsoluteColorBase(AbsoluteColorBaseField),
HexColor(HexColorField),
AlphaValue(AlphaValueField),
Hue(HueField),
CmykComponent(CmykComponentField),
Dimension(DimensionField),
Length(LengthField),
Angle(AngleField),
Time(TimeField),
Frequency(FrequencyField),
Resolution(ResolutionField),
Flex(FlexField),
UnknownDimension(UnknownDimensionField),
Percentage(PercentageField),
LengthPercentage(LengthPercentageField),
FrequencyPercentage(FrequencyPercentageField),
AnglePercentage(AnglePercentageField),
TimePercentage(TimePercentageField),
Ratio(RatioField),
Url(UrlField),
UrlValue(UrlValueField),
UrlValueRaw(UrlValueRawField),
UrlModifier(UrlModifierField),
UnicodeRange(UnicodeRangeField),
CalcSum(CalcSumField),
CalcProductOrOperator(CalcProductOrOperatorField),
CalcProduct(CalcProductField),
CalcOperator(CalcOperatorField),
CalcValueOrOperator(CalcValueOrOperatorField),
CalcValue(CalcValueField),
FamilyName(FamilyNameField),
SequenceOfCustomIdents(SequenceOfCustomIdentsField),
SelectorList(SelectorListField),
ForgivingSelectorList(ForgivingSelectorListField),
ForgivingComplexSelector(ForgivingComplexSelectorField),
CompoundSelectorList(CompoundSelectorListField),
RelativeSelectorList(RelativeSelectorListField),
ForgivingRelativeSelectorList(ForgivingRelativeSelectorListField),
ForgivingRelativeSelector(ForgivingRelativeSelectorField),
ComplexSelector(ComplexSelectorField),
ComplexSelectorChildren(ComplexSelectorChildrenField),
RelativeSelector(RelativeSelectorField),
CompoundSelector(CompoundSelectorField),
Combinator(CombinatorField),
TypeSelector(TypeSelectorField),
TagNameSelector(TagNameSelectorField),
UniversalSelector(UniversalSelectorField),
NamespacePrefix(NamespacePrefixField),
Namespace(NamespaceField),
NamedNamespace(NamedNamespaceField),
AnyNamespace(AnyNamespaceField),
WqName(WqNameField),
NestingSelector(NestingSelectorField),
SubclassSelector(SubclassSelectorField),
AttributeSelector(AttributeSelectorField),
AttributeSelectorMatcher(AttributeSelectorMatcherField),
AttributeSelectorValue(AttributeSelectorValueField),
AttributeSelectorModifier(AttributeSelectorModifierField),
PseudoClassSelector(PseudoClassSelectorField),
PseudoClassSelectorChildren(PseudoClassSelectorChildrenField),
AnPlusB(AnPlusBField),
AnPlusBNotation(AnPlusBNotationField),
PseudoElementSelector(PseudoElementSelectorField),
PseudoElementSelectorChildren(PseudoElementSelectorChildrenField),
CustomHighlightName(CustomHighlightNameField),
IdSelector(IdSelectorField),
ClassSelector(ClassSelectorField),
Stylesheet(StylesheetField),
Rule(RuleField),
ImportPrelude(ImportPreludeField),
ImportHref(ImportHrefField),
ImportLayerName(ImportLayerNameField),
ImportConditions(ImportConditionsField),
NamespacePrelude(NamespacePreludeField),
NamespacePreludeUri(NamespacePreludeUriField),
AtRule(AtRuleField),
AtRuleName(AtRuleNameField),
AtRulePrelude(AtRulePreludeField),
ListOfComponentValues(ListOfComponentValuesField),
ColorProfileName(ColorProfileNameField),
DocumentPrelude(DocumentPreludeField),
FontFeatureValuesPrelude(FontFeatureValuesPreludeField),
DocumentPreludeMatchingFunction(DocumentPreludeMatchingFunctionField),
KeyframesName(KeyframesNameField),
KeyframesPseudoPrefix(KeyframesPseudoPrefixField),
KeyframesPseudoFunction(KeyframesPseudoFunctionField),
KeyframeBlock(KeyframeBlockField),
KeyframeSelector(KeyframeSelectorField),
LayerName(LayerNameField),
LayerNameList(LayerNameListField),
LayerPrelude(LayerPreludeField),
MediaQueryList(MediaQueryListField),
MediaQuery(MediaQueryField),
MediaType(MediaTypeField),
MediaConditionType(MediaConditionTypeField),
MediaCondition(MediaConditionField),
MediaConditionWithoutOr(MediaConditionWithoutOrField),
MediaConditionAllType(MediaConditionAllTypeField),
MediaConditionWithoutOrType(MediaConditionWithoutOrTypeField),
MediaNot(MediaNotField),
MediaAnd(MediaAndField),
MediaOr(MediaOrField),
MediaInParens(MediaInParensField),
MediaFeature(MediaFeatureField),
MediaFeatureName(MediaFeatureNameField),
MediaFeatureValue(MediaFeatureValueField),
MediaFeaturePlain(MediaFeaturePlainField),
MediaFeatureBoolean(MediaFeatureBooleanField),
MediaFeatureRange(MediaFeatureRangeField),
MediaFeatureRangeInterval(MediaFeatureRangeIntervalField),
PageSelectorList(PageSelectorListField),
PageSelector(PageSelectorField),
PageSelectorType(PageSelectorTypeField),
PageSelectorPseudo(PageSelectorPseudoField),
SupportsCondition(SupportsConditionField),
SupportsConditionType(SupportsConditionTypeField),
SupportsNot(SupportsNotField),
SupportsAnd(SupportsAndField),
SupportsOr(SupportsOrField),
SupportsInParens(SupportsInParensField),
SupportsFeature(SupportsFeatureField),
ContainerCondition(ContainerConditionField),
ContainerName(ContainerNameField),
ContainerQuery(ContainerQueryField),
ContainerQueryType(ContainerQueryTypeField),
ContainerQueryNot(ContainerQueryNotField),
ContainerQueryAnd(ContainerQueryAndField),
ContainerQueryOr(ContainerQueryOrField),
QueryInParens(QueryInParensField),
SizeFeature(SizeFeatureField),
SizeFeaturePlain(SizeFeaturePlainField),
SizeFeatureBoolean(SizeFeatureBooleanField),
SizeFeatureRange(SizeFeatureRangeField),
SizeFeatureRangeInterval(SizeFeatureRangeIntervalField),
SizeFeatureValue(SizeFeatureValueField),
SizeFeatureName(SizeFeatureNameField),
ExtensionName(ExtensionNameField),
CustomMediaQuery(CustomMediaQueryField),
CustomMediaQueryMediaType(CustomMediaQueryMediaTypeField),
GeneralEnclosed(GeneralEnclosedField),
}
Variants§
TokenAndSpan(TokenAndSpanField)
SimpleBlock(SimpleBlockField)
ComponentValue(ComponentValueField)
Ident(IdentField)
CustomIdent(CustomIdentField)
CustomPropertyName(CustomPropertyNameField)
DashedIdent(DashedIdentField)
Str(StrField)
Integer(IntegerField)
Number(NumberField)
Declaration(DeclarationField)
DeclarationName(DeclarationNameField)
ImportantFlag(ImportantFlagField)
QualifiedRule(QualifiedRuleField)
QualifiedRulePrelude(QualifiedRulePreludeField)
StyleBlock(StyleBlockField)
DeclarationOrAtRule(DeclarationOrAtRuleField)
Delimiter(DelimiterField)
FunctionName(FunctionNameField)
Function(FunctionField)
Color(ColorField)
AbsoluteColorBase(AbsoluteColorBaseField)
HexColor(HexColorField)
AlphaValue(AlphaValueField)
Hue(HueField)
CmykComponent(CmykComponentField)
Dimension(DimensionField)
Length(LengthField)
Angle(AngleField)
Time(TimeField)
Frequency(FrequencyField)
Resolution(ResolutionField)
Flex(FlexField)
UnknownDimension(UnknownDimensionField)
Percentage(PercentageField)
LengthPercentage(LengthPercentageField)
FrequencyPercentage(FrequencyPercentageField)
AnglePercentage(AnglePercentageField)
TimePercentage(TimePercentageField)
Ratio(RatioField)
Url(UrlField)
UrlValue(UrlValueField)
UrlValueRaw(UrlValueRawField)
UrlModifier(UrlModifierField)
UnicodeRange(UnicodeRangeField)
CalcSum(CalcSumField)
CalcProductOrOperator(CalcProductOrOperatorField)
CalcProduct(CalcProductField)
CalcOperator(CalcOperatorField)
CalcValueOrOperator(CalcValueOrOperatorField)
CalcValue(CalcValueField)
FamilyName(FamilyNameField)
SequenceOfCustomIdents(SequenceOfCustomIdentsField)
SelectorList(SelectorListField)
ForgivingSelectorList(ForgivingSelectorListField)
ForgivingComplexSelector(ForgivingComplexSelectorField)
CompoundSelectorList(CompoundSelectorListField)
RelativeSelectorList(RelativeSelectorListField)
ForgivingRelativeSelectorList(ForgivingRelativeSelectorListField)
ForgivingRelativeSelector(ForgivingRelativeSelectorField)
ComplexSelector(ComplexSelectorField)
ComplexSelectorChildren(ComplexSelectorChildrenField)
RelativeSelector(RelativeSelectorField)
CompoundSelector(CompoundSelectorField)
Combinator(CombinatorField)
TypeSelector(TypeSelectorField)
TagNameSelector(TagNameSelectorField)
UniversalSelector(UniversalSelectorField)
NamespacePrefix(NamespacePrefixField)
Namespace(NamespaceField)
NamedNamespace(NamedNamespaceField)
AnyNamespace(AnyNamespaceField)
WqName(WqNameField)
NestingSelector(NestingSelectorField)
SubclassSelector(SubclassSelectorField)
AttributeSelector(AttributeSelectorField)
AttributeSelectorMatcher(AttributeSelectorMatcherField)
AttributeSelectorValue(AttributeSelectorValueField)
AttributeSelectorModifier(AttributeSelectorModifierField)
PseudoClassSelector(PseudoClassSelectorField)
PseudoClassSelectorChildren(PseudoClassSelectorChildrenField)
AnPlusB(AnPlusBField)
AnPlusBNotation(AnPlusBNotationField)
PseudoElementSelector(PseudoElementSelectorField)
PseudoElementSelectorChildren(PseudoElementSelectorChildrenField)
CustomHighlightName(CustomHighlightNameField)
IdSelector(IdSelectorField)
ClassSelector(ClassSelectorField)
Stylesheet(StylesheetField)
Rule(RuleField)
ImportPrelude(ImportPreludeField)
ImportHref(ImportHrefField)
ImportLayerName(ImportLayerNameField)
ImportConditions(ImportConditionsField)
NamespacePrelude(NamespacePreludeField)
NamespacePreludeUri(NamespacePreludeUriField)
AtRule(AtRuleField)
AtRuleName(AtRuleNameField)
AtRulePrelude(AtRulePreludeField)
ListOfComponentValues(ListOfComponentValuesField)
ColorProfileName(ColorProfileNameField)
DocumentPrelude(DocumentPreludeField)
FontFeatureValuesPrelude(FontFeatureValuesPreludeField)
DocumentPreludeMatchingFunction(DocumentPreludeMatchingFunctionField)
KeyframesName(KeyframesNameField)
KeyframesPseudoPrefix(KeyframesPseudoPrefixField)
KeyframesPseudoFunction(KeyframesPseudoFunctionField)
KeyframeBlock(KeyframeBlockField)
KeyframeSelector(KeyframeSelectorField)
LayerName(LayerNameField)
LayerNameList(LayerNameListField)
LayerPrelude(LayerPreludeField)
MediaQueryList(MediaQueryListField)
MediaQuery(MediaQueryField)
MediaType(MediaTypeField)
MediaConditionType(MediaConditionTypeField)
MediaCondition(MediaConditionField)
MediaConditionWithoutOr(MediaConditionWithoutOrField)
MediaConditionAllType(MediaConditionAllTypeField)
MediaConditionWithoutOrType(MediaConditionWithoutOrTypeField)
MediaNot(MediaNotField)
MediaAnd(MediaAndField)
MediaOr(MediaOrField)
MediaInParens(MediaInParensField)
MediaFeature(MediaFeatureField)
MediaFeatureName(MediaFeatureNameField)
MediaFeatureValue(MediaFeatureValueField)
MediaFeaturePlain(MediaFeaturePlainField)
MediaFeatureBoolean(MediaFeatureBooleanField)
MediaFeatureRange(MediaFeatureRangeField)
MediaFeatureRangeInterval(MediaFeatureRangeIntervalField)
PageSelectorList(PageSelectorListField)
PageSelector(PageSelectorField)
PageSelectorType(PageSelectorTypeField)
PageSelectorPseudo(PageSelectorPseudoField)
SupportsCondition(SupportsConditionField)
SupportsConditionType(SupportsConditionTypeField)
SupportsNot(SupportsNotField)
SupportsAnd(SupportsAndField)
SupportsOr(SupportsOrField)
SupportsInParens(SupportsInParensField)
SupportsFeature(SupportsFeatureField)
ContainerCondition(ContainerConditionField)
ContainerName(ContainerNameField)
ContainerQuery(ContainerQueryField)
ContainerQueryType(ContainerQueryTypeField)
ContainerQueryNot(ContainerQueryNotField)
ContainerQueryAnd(ContainerQueryAndField)
ContainerQueryOr(ContainerQueryOrField)
QueryInParens(QueryInParensField)
SizeFeature(SizeFeatureField)
SizeFeaturePlain(SizeFeaturePlainField)
SizeFeatureBoolean(SizeFeatureBooleanField)
SizeFeatureRange(SizeFeatureRangeField)
SizeFeatureRangeInterval(SizeFeatureRangeIntervalField)
SizeFeatureValue(SizeFeatureValueField)
SizeFeatureName(SizeFeatureNameField)
ExtensionName(ExtensionNameField)
CustomMediaQuery(CustomMediaQueryField)
CustomMediaQueryMediaType(CustomMediaQueryMediaTypeField)
GeneralEnclosed(GeneralEnclosedField)
Trait Implementations§
source§impl Clone for AstParentKind
impl Clone for AstParentKind
source§fn clone(&self) -> AstParentKind
fn clone(&self) -> AstParentKind
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 AstParentKind
impl Debug for AstParentKind
source§impl<'de> Deserialize<'de> for AstParentKind
impl<'de> Deserialize<'de> for AstParentKind
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 Hash for AstParentKind
impl Hash for AstParentKind
source§impl Ord for AstParentKind
impl Ord for AstParentKind
source§fn cmp(&self, other: &AstParentKind) -> Ordering
fn cmp(&self, other: &AstParentKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl ParentKind for AstParentKind
impl ParentKind for AstParentKind
source§impl PartialEq<AstParentKind> for AstParentKind
impl PartialEq<AstParentKind> for AstParentKind
source§fn eq(&self, other: &AstParentKind) -> bool
fn eq(&self, other: &AstParentKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AstParentKind> for AstParentKind
impl PartialOrd<AstParentKind> for AstParentKind
source§fn partial_cmp(&self, other: &AstParentKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AstParentKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for AstParentKind
impl Serialize for AstParentKind
impl Copy for AstParentKind
impl Eq for AstParentKind
impl StructuralEq for AstParentKind
impl StructuralPartialEq for AstParentKind
Auto Trait Implementations§
impl RefUnwindSafe for AstParentKind
impl Send for AstParentKind
impl Sync for AstParentKind
impl Unpin for AstParentKind
impl UnwindSafe for AstParentKind
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.