pub enum AstParentNodeRef<'ast> {
Show 133 variants Tokens(&'ast TokensTokensField), TokenAndSpan(&'ast TokenAndSpanTokenAndSpanField), SimpleBlock(&'ast SimpleBlockSimpleBlockField), ComponentValue(&'ast ComponentValueComponentValueField), Ident(&'ast IdentIdentField), CustomIdent(&'ast CustomIdentCustomIdentField), CustomPropertyName(&'ast CustomPropertyNameCustomPropertyNameField), DashedIdent(&'ast DashedIdentDashedIdentField), Str(&'ast StrStrField), Integer(&'ast IntegerIntegerField), Number(&'ast NumberNumberField), Declaration(&'ast DeclarationDeclarationField), DeclarationName(&'ast DeclarationNameDeclarationNameField), ImportantFlag(&'ast ImportantFlagImportantFlagField), QualifiedRule(&'ast QualifiedRuleQualifiedRuleField), QualifiedRulePrelude(&'ast QualifiedRulePreludeQualifiedRulePreludeField), StyleBlock(&'ast StyleBlockStyleBlockField), DeclarationOrAtRule(&'ast DeclarationOrAtRuleDeclarationOrAtRuleField), Delimiter(&'ast DelimiterDelimiterField), Function(&'ast FunctionFunctionField), Color(&'ast ColorColorField), AbsoluteColorBase(&'ast AbsoluteColorBaseAbsoluteColorBaseField), HexColor(&'ast HexColorHexColorField), AlphaValue(&'ast AlphaValueAlphaValueField), Hue(&'ast HueHueField), CmykComponent(&'ast CmykComponentCmykComponentField), Dimension(&'ast DimensionDimensionField), Length(&'ast LengthLengthField), Angle(&'ast AngleAngleField), Time(&'ast TimeTimeField), Frequency(&'ast FrequencyFrequencyField), Resolution(&'ast ResolutionResolutionField), Flex(&'ast FlexFlexField), UnknownDimension(&'ast UnknownDimensionUnknownDimensionField), Percentage(&'ast PercentagePercentageField), Ratio(&'ast RatioRatioField), Url(&'ast UrlUrlField), UrlValue(&'ast UrlValueUrlValueField), UrlValueRaw(&'ast UrlValueRawUrlValueRawField), UrlModifier(&'ast UrlModifierUrlModifierField), UnicodeRange(&'ast UnicodeRangeUnicodeRangeField), CalcSum(&'ast CalcSumCalcSumField), CalcProductOrOperator(&'ast CalcProductOrOperatorCalcProductOrOperatorField), CalcProduct(&'ast CalcProductCalcProductField), CalcOperator(&'ast CalcOperatorCalcOperatorField), CalcValueOrOperator(&'ast CalcValueOrOperatorCalcValueOrOperatorField), CalcValue(&'ast CalcValueCalcValueField), FamilyName(&'ast FamilyNameFamilyNameField), SequenceOfCustomIdents(&'ast SequenceOfCustomIdentsSequenceOfCustomIdentsField), SelectorList(&'ast SelectorListSelectorListField), ForgivingSelectorList(&'ast ForgivingSelectorListForgivingSelectorListField), ForgivingComplexSelector(&'ast ForgivingComplexSelectorForgivingComplexSelectorField), CompoundSelectorList(&'ast CompoundSelectorListCompoundSelectorListField), RelativeSelectorList(&'ast RelativeSelectorListRelativeSelectorListField), ForgivingRelativeSelectorList(&'ast ForgivingRelativeSelectorListForgivingRelativeSelectorListField), ForgivingRelativeSelector(&'ast ForgivingRelativeSelectorForgivingRelativeSelectorField), ComplexSelector(&'ast ComplexSelectorComplexSelectorField), ComplexSelectorChildren(&'ast ComplexSelectorChildrenComplexSelectorChildrenField), RelativeSelector(&'ast RelativeSelectorRelativeSelectorField), CompoundSelector(&'ast CompoundSelectorCompoundSelectorField), Combinator(&'ast CombinatorCombinatorField), TypeSelector(&'ast TypeSelectorTypeSelectorField), TagNameSelector(&'ast TagNameSelectorTagNameSelectorField), UniversalSelector(&'ast UniversalSelectorUniversalSelectorField), NsPrefix(&'ast NsPrefixNsPrefixField), WqName(&'ast WqNameWqNameField), NestingSelector(&'ast NestingSelectorNestingSelectorField), SubclassSelector(&'ast SubclassSelectorSubclassSelectorField), AttributeSelector(&'ast AttributeSelectorAttributeSelectorField), AttributeSelectorMatcher(&'ast AttributeSelectorMatcherAttributeSelectorMatcherField), AttributeSelectorValue(&'ast AttributeSelectorValueAttributeSelectorValueField), AttributeSelectorModifier(&'ast AttributeSelectorModifierAttributeSelectorModifierField), PseudoClassSelector(&'ast PseudoClassSelectorPseudoClassSelectorField), PseudoClassSelectorChildren(&'ast PseudoClassSelectorChildrenPseudoClassSelectorChildrenField), AnPlusB(&'ast AnPlusBAnPlusBField), AnPlusBNotation(&'ast AnPlusBNotationAnPlusBNotationField), PseudoElementSelector(&'ast PseudoElementSelectorPseudoElementSelectorField), PseudoElementSelectorChildren(&'ast PseudoElementSelectorChildrenPseudoElementSelectorChildrenField), IdSelector(&'ast IdSelectorIdSelectorField), ClassSelector(&'ast ClassSelectorClassSelectorField), Stylesheet(&'ast StylesheetStylesheetField), Rule(&'ast RuleRuleField), ImportPrelude(&'ast ImportPreludeImportPreludeField), ImportPreludeHref(&'ast ImportPreludeHrefImportPreludeHrefField), ImportPreludeLayerName(&'ast ImportPreludeLayerNameImportPreludeLayerNameField), ImportPreludeSupportsType(&'ast ImportPreludeSupportsTypeImportPreludeSupportsTypeField), NamespacePrelude(&'ast NamespacePreludeNamespacePreludeField), NamespacePreludeUri(&'ast NamespacePreludeUriNamespacePreludeUriField), AtRule(&'ast AtRuleAtRuleField), AtRuleName(&'ast AtRuleNameAtRuleNameField), AtRulePrelude(&'ast AtRulePreludeAtRulePreludeField), ListOfComponentValues(&'ast ListOfComponentValuesListOfComponentValuesField), ColorProfileName(&'ast ColorProfileNameColorProfileNameField), DocumentPrelude(&'ast DocumentPreludeDocumentPreludeField), FontFeatureValuesPrelude(&'ast FontFeatureValuesPreludeFontFeatureValuesPreludeField), DocumentPreludeMatchingFunction(&'ast DocumentPreludeMatchingFunctionDocumentPreludeMatchingFunctionField), KeyframesName(&'ast KeyframesNameKeyframesNameField), KeyframeBlock(&'ast KeyframeBlockKeyframeBlockField), KeyframeSelector(&'ast KeyframeSelectorKeyframeSelectorField), LayerName(&'ast LayerNameLayerNameField), LayerNameList(&'ast LayerNameListLayerNameListField), LayerPrelude(&'ast LayerPreludeLayerPreludeField), MediaQueryList(&'ast MediaQueryListMediaQueryListField), MediaQuery(&'ast MediaQueryMediaQueryField), MediaType(&'ast MediaTypeMediaTypeField), MediaConditionType(&'ast MediaConditionTypeMediaConditionTypeField), MediaCondition(&'ast MediaConditionMediaConditionField), MediaConditionWithoutOr(&'ast MediaConditionWithoutOrMediaConditionWithoutOrField), MediaConditionAllType(&'ast MediaConditionAllTypeMediaConditionAllTypeField), MediaConditionWithoutOrType(&'ast MediaConditionWithoutOrTypeMediaConditionWithoutOrTypeField), MediaNot(&'ast MediaNotMediaNotField), MediaAnd(&'ast MediaAndMediaAndField), MediaOr(&'ast MediaOrMediaOrField), MediaInParens(&'ast MediaInParensMediaInParensField), MediaFeature(&'ast MediaFeatureMediaFeatureField), MediaFeatureName(&'ast MediaFeatureNameMediaFeatureNameField), MediaFeatureValue(&'ast MediaFeatureValueMediaFeatureValueField), MediaFeaturePlain(&'ast MediaFeaturePlainMediaFeaturePlainField), MediaFeatureBoolean(&'ast MediaFeatureBooleanMediaFeatureBooleanField), MediaFeatureRange(&'ast MediaFeatureRangeMediaFeatureRangeField), MediaFeatureRangeInterval(&'ast MediaFeatureRangeIntervalMediaFeatureRangeIntervalField), PageSelectorList(&'ast PageSelectorListPageSelectorListField), PageSelector(&'ast PageSelectorPageSelectorField), PageSelectorType(&'ast PageSelectorTypePageSelectorTypeField), PageSelectorPseudo(&'ast PageSelectorPseudoPageSelectorPseudoField), SupportsCondition(&'ast SupportsConditionSupportsConditionField), SupportsConditionType(&'ast SupportsConditionTypeSupportsConditionTypeField), SupportsNot(&'ast SupportsNotSupportsNotField), SupportsAnd(&'ast SupportsAndSupportsAndField), SupportsOr(&'ast SupportsOrSupportsOrField), SupportsInParens(&'ast SupportsInParensSupportsInParensField), SupportsFeature(&'ast SupportsFeatureSupportsFeatureField), GeneralEnclosed(&'ast GeneralEnclosedGeneralEnclosedField),
}

Variants

Tokens(&'ast TokensTokensField)

TokenAndSpan(&'ast TokenAndSpanTokenAndSpanField)

SimpleBlock(&'ast SimpleBlockSimpleBlockField)

ComponentValue(&'ast ComponentValueComponentValueField)

Ident(&'ast IdentIdentField)

CustomIdent(&'ast CustomIdentCustomIdentField)

CustomPropertyName(&'ast CustomPropertyNameCustomPropertyNameField)

DashedIdent(&'ast DashedIdentDashedIdentField)

Str(&'ast StrStrField)

Integer(&'ast IntegerIntegerField)

Number(&'ast NumberNumberField)

Declaration(&'ast DeclarationDeclarationField)

DeclarationName(&'ast DeclarationNameDeclarationNameField)

ImportantFlag(&'ast ImportantFlagImportantFlagField)

QualifiedRule(&'ast QualifiedRuleQualifiedRuleField)

QualifiedRulePrelude(&'ast QualifiedRulePreludeQualifiedRulePreludeField)

StyleBlock(&'ast StyleBlockStyleBlockField)

DeclarationOrAtRule(&'ast DeclarationOrAtRuleDeclarationOrAtRuleField)

Delimiter(&'ast DelimiterDelimiterField)

Function(&'ast FunctionFunctionField)

Color(&'ast ColorColorField)

AbsoluteColorBase(&'ast AbsoluteColorBaseAbsoluteColorBaseField)

HexColor(&'ast HexColorHexColorField)

AlphaValue(&'ast AlphaValueAlphaValueField)

Hue(&'ast HueHueField)

CmykComponent(&'ast CmykComponentCmykComponentField)

Dimension(&'ast DimensionDimensionField)

Length(&'ast LengthLengthField)

Angle(&'ast AngleAngleField)

Time(&'ast TimeTimeField)

Frequency(&'ast FrequencyFrequencyField)

Resolution(&'ast ResolutionResolutionField)

Flex(&'ast FlexFlexField)

UnknownDimension(&'ast UnknownDimensionUnknownDimensionField)

Percentage(&'ast PercentagePercentageField)

Ratio(&'ast RatioRatioField)

Url(&'ast UrlUrlField)

UrlValue(&'ast UrlValueUrlValueField)

UrlValueRaw(&'ast UrlValueRawUrlValueRawField)

UrlModifier(&'ast UrlModifierUrlModifierField)

UnicodeRange(&'ast UnicodeRangeUnicodeRangeField)

CalcSum(&'ast CalcSumCalcSumField)

CalcProductOrOperator(&'ast CalcProductOrOperatorCalcProductOrOperatorField)

CalcProduct(&'ast CalcProductCalcProductField)

CalcOperator(&'ast CalcOperatorCalcOperatorField)

CalcValueOrOperator(&'ast CalcValueOrOperatorCalcValueOrOperatorField)

CalcValue(&'ast CalcValueCalcValueField)

FamilyName(&'ast FamilyNameFamilyNameField)

SequenceOfCustomIdents(&'ast SequenceOfCustomIdentsSequenceOfCustomIdentsField)

SelectorList(&'ast SelectorListSelectorListField)

ForgivingSelectorList(&'ast ForgivingSelectorListForgivingSelectorListField)

ForgivingComplexSelector(&'ast ForgivingComplexSelectorForgivingComplexSelectorField)

CompoundSelectorList(&'ast CompoundSelectorListCompoundSelectorListField)

RelativeSelectorList(&'ast RelativeSelectorListRelativeSelectorListField)

ForgivingRelativeSelectorList(&'ast ForgivingRelativeSelectorListForgivingRelativeSelectorListField)

ForgivingRelativeSelector(&'ast ForgivingRelativeSelectorForgivingRelativeSelectorField)

ComplexSelector(&'ast ComplexSelectorComplexSelectorField)

ComplexSelectorChildren(&'ast ComplexSelectorChildrenComplexSelectorChildrenField)

RelativeSelector(&'ast RelativeSelectorRelativeSelectorField)

CompoundSelector(&'ast CompoundSelectorCompoundSelectorField)

Combinator(&'ast CombinatorCombinatorField)

TypeSelector(&'ast TypeSelectorTypeSelectorField)

TagNameSelector(&'ast TagNameSelectorTagNameSelectorField)

UniversalSelector(&'ast UniversalSelectorUniversalSelectorField)

NsPrefix(&'ast NsPrefixNsPrefixField)

WqName(&'ast WqNameWqNameField)

NestingSelector(&'ast NestingSelectorNestingSelectorField)

SubclassSelector(&'ast SubclassSelectorSubclassSelectorField)

AttributeSelector(&'ast AttributeSelectorAttributeSelectorField)

AttributeSelectorMatcher(&'ast AttributeSelectorMatcherAttributeSelectorMatcherField)

AttributeSelectorValue(&'ast AttributeSelectorValueAttributeSelectorValueField)

AttributeSelectorModifier(&'ast AttributeSelectorModifierAttributeSelectorModifierField)

PseudoClassSelector(&'ast PseudoClassSelectorPseudoClassSelectorField)

PseudoClassSelectorChildren(&'ast PseudoClassSelectorChildrenPseudoClassSelectorChildrenField)

AnPlusB(&'ast AnPlusBAnPlusBField)

AnPlusBNotation(&'ast AnPlusBNotationAnPlusBNotationField)

PseudoElementSelector(&'ast PseudoElementSelectorPseudoElementSelectorField)

PseudoElementSelectorChildren(&'ast PseudoElementSelectorChildrenPseudoElementSelectorChildrenField)

IdSelector(&'ast IdSelectorIdSelectorField)

ClassSelector(&'ast ClassSelectorClassSelectorField)

Stylesheet(&'ast StylesheetStylesheetField)

Rule(&'ast RuleRuleField)

ImportPrelude(&'ast ImportPreludeImportPreludeField)

ImportPreludeHref(&'ast ImportPreludeHrefImportPreludeHrefField)

ImportPreludeLayerName(&'ast ImportPreludeLayerNameImportPreludeLayerNameField)

ImportPreludeSupportsType(&'ast ImportPreludeSupportsTypeImportPreludeSupportsTypeField)

NamespacePrelude(&'ast NamespacePreludeNamespacePreludeField)

NamespacePreludeUri(&'ast NamespacePreludeUriNamespacePreludeUriField)

AtRule(&'ast AtRuleAtRuleField)

AtRuleName(&'ast AtRuleNameAtRuleNameField)

AtRulePrelude(&'ast AtRulePreludeAtRulePreludeField)

ListOfComponentValues(&'ast ListOfComponentValuesListOfComponentValuesField)

ColorProfileName(&'ast ColorProfileNameColorProfileNameField)

DocumentPrelude(&'ast DocumentPreludeDocumentPreludeField)

FontFeatureValuesPrelude(&'ast FontFeatureValuesPreludeFontFeatureValuesPreludeField)

DocumentPreludeMatchingFunction(&'ast DocumentPreludeMatchingFunctionDocumentPreludeMatchingFunctionField)

KeyframesName(&'ast KeyframesNameKeyframesNameField)

KeyframeBlock(&'ast KeyframeBlockKeyframeBlockField)

KeyframeSelector(&'ast KeyframeSelectorKeyframeSelectorField)

LayerName(&'ast LayerNameLayerNameField)

LayerNameList(&'ast LayerNameListLayerNameListField)

LayerPrelude(&'ast LayerPreludeLayerPreludeField)

MediaQueryList(&'ast MediaQueryListMediaQueryListField)

MediaQuery(&'ast MediaQueryMediaQueryField)

MediaType(&'ast MediaTypeMediaTypeField)

MediaConditionType(&'ast MediaConditionTypeMediaConditionTypeField)

MediaCondition(&'ast MediaConditionMediaConditionField)

MediaConditionWithoutOr(&'ast MediaConditionWithoutOrMediaConditionWithoutOrField)

MediaConditionAllType(&'ast MediaConditionAllTypeMediaConditionAllTypeField)

MediaConditionWithoutOrType(&'ast MediaConditionWithoutOrTypeMediaConditionWithoutOrTypeField)

MediaNot(&'ast MediaNotMediaNotField)

MediaAnd(&'ast MediaAndMediaAndField)

MediaOr(&'ast MediaOrMediaOrField)

MediaInParens(&'ast MediaInParensMediaInParensField)

MediaFeature(&'ast MediaFeatureMediaFeatureField)

MediaFeatureName(&'ast MediaFeatureNameMediaFeatureNameField)

MediaFeatureValue(&'ast MediaFeatureValueMediaFeatureValueField)

MediaFeaturePlain(&'ast MediaFeaturePlainMediaFeaturePlainField)

MediaFeatureBoolean(&'ast MediaFeatureBooleanMediaFeatureBooleanField)

MediaFeatureRange(&'ast MediaFeatureRangeMediaFeatureRangeField)

MediaFeatureRangeInterval(&'ast MediaFeatureRangeIntervalMediaFeatureRangeIntervalField)

PageSelectorList(&'ast PageSelectorListPageSelectorListField)

PageSelector(&'ast PageSelectorPageSelectorField)

PageSelectorType(&'ast PageSelectorTypePageSelectorTypeField)

PageSelectorPseudo(&'ast PageSelectorPseudoPageSelectorPseudoField)

SupportsCondition(&'ast SupportsConditionSupportsConditionField)

SupportsConditionType(&'ast SupportsConditionTypeSupportsConditionTypeField)

SupportsNot(&'ast SupportsNotSupportsNotField)

SupportsAnd(&'ast SupportsAndSupportsAndField)

SupportsOr(&'ast SupportsOrSupportsOrField)

SupportsInParens(&'ast SupportsInParensSupportsInParensField)

SupportsFeature(&'ast SupportsFeatureSupportsFeatureField)

GeneralEnclosed(&'ast GeneralEnclosedGeneralEnclosedField)

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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