Enum swc_css_visit::AstNodeRef
source · [−]pub enum AstNodeRef<'ast> {
Show 179 variants
AbsoluteColorBase(&'ast AbsoluteColorBase),
AlphaValue(&'ast AlphaValue),
AnPlusB(&'ast AnPlusB),
AnPlusBNotation(&'ast AnPlusBNotation),
Angle(&'ast Angle),
AtRule(&'ast AtRule),
AtRuleName(&'ast AtRuleName),
AtRulePrelude(&'ast AtRulePrelude),
AttributeSelector(&'ast AttributeSelector),
AttributeSelectorMatcher(&'ast AttributeSelectorMatcher),
AttributeSelectorMatcherValue(&'ast AttributeSelectorMatcherValue),
AttributeSelectorModifier(&'ast AttributeSelectorModifier),
AttributeSelectorValue(&'ast AttributeSelectorValue),
CalcOperator(&'ast CalcOperator),
CalcOperatorType(&'ast CalcOperatorType),
CalcProduct(&'ast CalcProduct),
CalcProductOrOperator(&'ast CalcProductOrOperator),
CalcSum(&'ast CalcSum),
CalcValue(&'ast CalcValue),
CalcValueOrOperator(&'ast CalcValueOrOperator),
ClassSelector(&'ast ClassSelector),
CmykComponent(&'ast CmykComponent),
Color(&'ast Color),
ColorProfileName(&'ast ColorProfileName),
Combinator(&'ast Combinator),
CombinatorValue(&'ast CombinatorValue),
ComplexSelector(&'ast ComplexSelector),
ComplexSelectorChildren(&'ast ComplexSelectorChildren),
ComponentValue(&'ast ComponentValue),
CompoundSelector(&'ast CompoundSelector),
CompoundSelectorList(&'ast CompoundSelectorList),
CustomIdent(&'ast CustomIdent),
CustomPropertyName(&'ast CustomPropertyName),
DashedIdent(&'ast DashedIdent),
Declaration(&'ast Declaration),
DeclarationName(&'ast DeclarationName),
DeclarationOrAtRule(&'ast DeclarationOrAtRule),
Delimiter(&'ast Delimiter),
DelimiterValue(&'ast DelimiterValue),
Dimension(&'ast Dimension),
DocumentPrelude(&'ast DocumentPrelude),
DocumentPreludeMatchingFunction(&'ast DocumentPreludeMatchingFunction),
Flex(&'ast Flex),
Frequency(&'ast Frequency),
Function(&'ast Function),
GeneralEnclosed(&'ast GeneralEnclosed),
HexColor(&'ast HexColor),
Hue(&'ast Hue),
IdSelector(&'ast IdSelector),
Ident(&'ast Ident),
ImportPrelude(&'ast ImportPrelude),
ImportPreludeHref(&'ast ImportPreludeHref),
ImportPreludeLayerName(&'ast ImportPreludeLayerName),
ImportPreludeSupportsType(&'ast ImportPreludeSupportsType),
ImportantFlag(&'ast ImportantFlag),
Integer(&'ast Integer),
JsWord(&'ast JsWord),
KeyframeBlock(&'ast KeyframeBlock),
KeyframeSelector(&'ast KeyframeSelector),
KeyframesName(&'ast KeyframesName),
LayerName(&'ast LayerName),
LayerNameList(&'ast LayerNameList),
LayerPrelude(&'ast LayerPrelude),
Length(&'ast Length),
ListOfComponentValues(&'ast ListOfComponentValues),
MediaAnd(&'ast MediaAnd),
MediaCondition(&'ast MediaCondition),
MediaConditionAllType(&'ast MediaConditionAllType),
MediaConditionType(&'ast MediaConditionType),
MediaConditionWithoutOr(&'ast MediaConditionWithoutOr),
MediaConditionWithoutOrType(&'ast MediaConditionWithoutOrType),
MediaFeature(&'ast MediaFeature),
MediaFeatureBoolean(&'ast MediaFeatureBoolean),
MediaFeatureName(&'ast MediaFeatureName),
MediaFeaturePlain(&'ast MediaFeaturePlain),
MediaFeatureRange(&'ast MediaFeatureRange),
MediaFeatureRangeComparison(&'ast MediaFeatureRangeComparison),
MediaFeatureRangeInterval(&'ast MediaFeatureRangeInterval),
MediaFeatureValue(&'ast MediaFeatureValue),
MediaInParens(&'ast MediaInParens),
MediaNot(&'ast MediaNot),
MediaOr(&'ast MediaOr),
MediaQuery(&'ast MediaQuery),
MediaQueryList(&'ast MediaQueryList),
NamespacePrelude(&'ast NamespacePrelude),
NamespacePreludeUri(&'ast NamespacePreludeUri),
NestingSelector(&'ast NestingSelector),
NsPrefix(&'ast NsPrefix),
Number(&'ast Number),
OptAtRulePrelude(Option<&'ast AtRulePrelude>),
OptAttributeSelectorMatcher(Option<&'ast AttributeSelectorMatcher>),
OptAttributeSelectorModifier(Option<&'ast AttributeSelectorModifier>),
OptAttributeSelectorValue(Option<&'ast AttributeSelectorValue>),
OptCombinator(Option<&'ast Combinator>),
OptIdent(Option<&'ast Ident>),
OptImportPreludeLayerName(Option<&'ast ImportPreludeLayerName>),
OptImportPreludeSupportsType(Option<&'ast ImportPreludeSupportsType>),
OptImportantFlag(Option<&'ast ImportantFlag>),
OptJsWord(Option<&'ast JsWord>),
OptMediaConditionType(Option<&'ast MediaConditionType>),
OptMediaQueryList(Option<&'ast MediaQueryList>),
OptNestingSelector(Option<&'ast NestingSelector>),
OptNsPrefix(Option<&'ast NsPrefix>),
OptNumber(Option<&'ast Number>),
OptPageSelectorType(Option<&'ast PageSelectorType>),
OptSimpleBlock(Option<&'ast SimpleBlock>),
OptTypeSelector(Option<&'ast TypeSelector>),
OptUrlValue(Option<&'ast UrlValue>),
OptVecPageSelectorPseudo(Option<&'ast [PageSelectorPseudo]>),
OptVecPseudoClassSelectorChildren(Option<&'ast [PseudoClassSelectorChildren]>),
OptVecPseudoElementSelectorChildren(Option<&'ast [PseudoElementSelectorChildren]>),
OptVecUrlModifier(Option<&'ast [UrlModifier]>),
PageSelector(&'ast PageSelector),
PageSelectorList(&'ast PageSelectorList),
PageSelectorPseudo(&'ast PageSelectorPseudo),
PageSelectorType(&'ast PageSelectorType),
Percentage(&'ast Percentage),
PseudoClassSelector(&'ast PseudoClassSelector),
PseudoClassSelectorChildren(&'ast PseudoClassSelectorChildren),
PseudoElementSelector(&'ast PseudoElementSelector),
PseudoElementSelectorChildren(&'ast PseudoElementSelectorChildren),
QualifiedRule(&'ast QualifiedRule),
QualifiedRulePrelude(&'ast QualifiedRulePrelude),
Ratio(&'ast Ratio),
RelativeSelector(&'ast RelativeSelector),
RelativeSelectorList(&'ast RelativeSelectorList),
Resolution(&'ast Resolution),
Rule(&'ast Rule),
SelectorList(&'ast SelectorList),
SimpleBlock(&'ast SimpleBlock),
Span(&'ast Span),
Str(&'ast Str),
StyleBlock(&'ast StyleBlock),
Stylesheet(&'ast Stylesheet),
SubclassSelector(&'ast SubclassSelector),
SupportsAnd(&'ast SupportsAnd),
SupportsCondition(&'ast SupportsCondition),
SupportsConditionType(&'ast SupportsConditionType),
SupportsFeature(&'ast SupportsFeature),
SupportsInParens(&'ast SupportsInParens),
SupportsNot(&'ast SupportsNot),
SupportsOr(&'ast SupportsOr),
TagNameSelector(&'ast TagNameSelector),
Time(&'ast Time),
Token(&'ast Token),
TokenAndSpan(&'ast TokenAndSpan),
Tokens(&'ast Tokens),
TypeSelector(&'ast TypeSelector),
UnicodeRange(&'ast UnicodeRange),
UniversalSelector(&'ast UniversalSelector),
UnknownDimension(&'ast UnknownDimension),
Url(&'ast Url),
UrlModifier(&'ast UrlModifier),
UrlValue(&'ast UrlValue),
UrlValueRaw(&'ast UrlValueRaw),
VecCalcProductOrOperator(&'ast [CalcProductOrOperator], usize),
VecCalcValueOrOperator(&'ast [CalcValueOrOperator], usize),
VecComplexSelector(&'ast [ComplexSelector], usize),
VecComplexSelectorChildren(&'ast [ComplexSelectorChildren], usize),
VecComponentValue(&'ast [ComponentValue], usize),
VecCompoundSelector(&'ast [CompoundSelector], usize),
VecDocumentPreludeMatchingFunction(&'ast [DocumentPreludeMatchingFunction], usize),
VecIdent(&'ast [Ident], usize),
VecKeyframeSelector(&'ast [KeyframeSelector], usize),
VecLayerName(&'ast [LayerName], usize),
VecMediaConditionAllType(&'ast [MediaConditionAllType], usize),
VecMediaConditionWithoutOrType(&'ast [MediaConditionWithoutOrType], usize),
VecMediaQuery(&'ast [MediaQuery], usize),
VecPageSelector(&'ast [PageSelector], usize),
VecPageSelectorPseudo(&'ast [PageSelectorPseudo], usize),
VecPseudoClassSelectorChildren(&'ast [PseudoClassSelectorChildren], usize),
VecPseudoElementSelectorChildren(&'ast [PseudoElementSelectorChildren], usize),
VecRelativeSelector(&'ast [RelativeSelector], usize),
VecRule(&'ast [Rule], usize),
VecSubclassSelector(&'ast [SubclassSelector], usize),
VecSupportsConditionType(&'ast [SupportsConditionType], usize),
VecTokenAndSpan(&'ast [TokenAndSpan], usize),
VecUrlModifier(&'ast [UrlModifier], usize),
WqName(&'ast WqName),
}
Variants
AbsoluteColorBase(&'ast AbsoluteColorBase)
AlphaValue(&'ast AlphaValue)
AnPlusB(&'ast AnPlusB)
AnPlusBNotation(&'ast AnPlusBNotation)
Angle(&'ast Angle)
AtRule(&'ast AtRule)
AtRuleName(&'ast AtRuleName)
AtRulePrelude(&'ast AtRulePrelude)
AttributeSelector(&'ast AttributeSelector)
AttributeSelectorMatcher(&'ast AttributeSelectorMatcher)
AttributeSelectorMatcherValue(&'ast AttributeSelectorMatcherValue)
AttributeSelectorModifier(&'ast AttributeSelectorModifier)
AttributeSelectorValue(&'ast AttributeSelectorValue)
CalcOperator(&'ast CalcOperator)
CalcOperatorType(&'ast CalcOperatorType)
CalcProduct(&'ast CalcProduct)
CalcProductOrOperator(&'ast CalcProductOrOperator)
CalcSum(&'ast CalcSum)
CalcValue(&'ast CalcValue)
CalcValueOrOperator(&'ast CalcValueOrOperator)
ClassSelector(&'ast ClassSelector)
CmykComponent(&'ast CmykComponent)
Color(&'ast Color)
ColorProfileName(&'ast ColorProfileName)
Combinator(&'ast Combinator)
CombinatorValue(&'ast CombinatorValue)
ComplexSelector(&'ast ComplexSelector)
ComplexSelectorChildren(&'ast ComplexSelectorChildren)
ComponentValue(&'ast ComponentValue)
CompoundSelector(&'ast CompoundSelector)
CompoundSelectorList(&'ast CompoundSelectorList)
CustomIdent(&'ast CustomIdent)
CustomPropertyName(&'ast CustomPropertyName)
DashedIdent(&'ast DashedIdent)
Declaration(&'ast Declaration)
DeclarationName(&'ast DeclarationName)
DeclarationOrAtRule(&'ast DeclarationOrAtRule)
Delimiter(&'ast Delimiter)
DelimiterValue(&'ast DelimiterValue)
Dimension(&'ast Dimension)
DocumentPrelude(&'ast DocumentPrelude)
DocumentPreludeMatchingFunction(&'ast DocumentPreludeMatchingFunction)
Flex(&'ast Flex)
Frequency(&'ast Frequency)
Function(&'ast Function)
GeneralEnclosed(&'ast GeneralEnclosed)
HexColor(&'ast HexColor)
Hue(&'ast Hue)
IdSelector(&'ast IdSelector)
Ident(&'ast Ident)
ImportPrelude(&'ast ImportPrelude)
ImportPreludeHref(&'ast ImportPreludeHref)
ImportPreludeLayerName(&'ast ImportPreludeLayerName)
ImportPreludeSupportsType(&'ast ImportPreludeSupportsType)
ImportantFlag(&'ast ImportantFlag)
Integer(&'ast Integer)
JsWord(&'ast JsWord)
KeyframeBlock(&'ast KeyframeBlock)
KeyframeSelector(&'ast KeyframeSelector)
KeyframesName(&'ast KeyframesName)
LayerName(&'ast LayerName)
LayerNameList(&'ast LayerNameList)
LayerPrelude(&'ast LayerPrelude)
Length(&'ast Length)
ListOfComponentValues(&'ast ListOfComponentValues)
MediaAnd(&'ast MediaAnd)
MediaCondition(&'ast MediaCondition)
MediaConditionAllType(&'ast MediaConditionAllType)
MediaConditionType(&'ast MediaConditionType)
MediaConditionWithoutOr(&'ast MediaConditionWithoutOr)
MediaConditionWithoutOrType(&'ast MediaConditionWithoutOrType)
MediaFeature(&'ast MediaFeature)
MediaFeatureBoolean(&'ast MediaFeatureBoolean)
MediaFeatureName(&'ast MediaFeatureName)
MediaFeaturePlain(&'ast MediaFeaturePlain)
MediaFeatureRange(&'ast MediaFeatureRange)
MediaFeatureRangeComparison(&'ast MediaFeatureRangeComparison)
MediaFeatureRangeInterval(&'ast MediaFeatureRangeInterval)
MediaFeatureValue(&'ast MediaFeatureValue)
MediaInParens(&'ast MediaInParens)
MediaNot(&'ast MediaNot)
MediaOr(&'ast MediaOr)
MediaQuery(&'ast MediaQuery)
MediaQueryList(&'ast MediaQueryList)
NamespacePrelude(&'ast NamespacePrelude)
NamespacePreludeUri(&'ast NamespacePreludeUri)
NestingSelector(&'ast NestingSelector)
NsPrefix(&'ast NsPrefix)
Number(&'ast Number)
OptAtRulePrelude(Option<&'ast AtRulePrelude>)
OptAttributeSelectorMatcher(Option<&'ast AttributeSelectorMatcher>)
OptAttributeSelectorModifier(Option<&'ast AttributeSelectorModifier>)
OptAttributeSelectorValue(Option<&'ast AttributeSelectorValue>)
OptCombinator(Option<&'ast Combinator>)
OptIdent(Option<&'ast Ident>)
OptImportPreludeLayerName(Option<&'ast ImportPreludeLayerName>)
OptImportPreludeSupportsType(Option<&'ast ImportPreludeSupportsType>)
OptImportantFlag(Option<&'ast ImportantFlag>)
OptJsWord(Option<&'ast JsWord>)
OptMediaConditionType(Option<&'ast MediaConditionType>)
OptMediaQueryList(Option<&'ast MediaQueryList>)
OptNestingSelector(Option<&'ast NestingSelector>)
OptNsPrefix(Option<&'ast NsPrefix>)
OptNumber(Option<&'ast Number>)
OptPageSelectorType(Option<&'ast PageSelectorType>)
OptSimpleBlock(Option<&'ast SimpleBlock>)
OptTypeSelector(Option<&'ast TypeSelector>)
OptUrlValue(Option<&'ast UrlValue>)
OptVecPageSelectorPseudo(Option<&'ast [PageSelectorPseudo]>)
OptVecPseudoClassSelectorChildren(Option<&'ast [PseudoClassSelectorChildren]>)
OptVecPseudoElementSelectorChildren(Option<&'ast [PseudoElementSelectorChildren]>)
OptVecUrlModifier(Option<&'ast [UrlModifier]>)
PageSelector(&'ast PageSelector)
PageSelectorList(&'ast PageSelectorList)
PageSelectorPseudo(&'ast PageSelectorPseudo)
PageSelectorType(&'ast PageSelectorType)
Percentage(&'ast Percentage)
PseudoClassSelector(&'ast PseudoClassSelector)
PseudoClassSelectorChildren(&'ast PseudoClassSelectorChildren)
PseudoElementSelector(&'ast PseudoElementSelector)
PseudoElementSelectorChildren(&'ast PseudoElementSelectorChildren)
QualifiedRule(&'ast QualifiedRule)
QualifiedRulePrelude(&'ast QualifiedRulePrelude)
Ratio(&'ast Ratio)
RelativeSelector(&'ast RelativeSelector)
RelativeSelectorList(&'ast RelativeSelectorList)
Resolution(&'ast Resolution)
Rule(&'ast Rule)
SelectorList(&'ast SelectorList)
SimpleBlock(&'ast SimpleBlock)
Span(&'ast Span)
Str(&'ast Str)
StyleBlock(&'ast StyleBlock)
Stylesheet(&'ast Stylesheet)
SubclassSelector(&'ast SubclassSelector)
SupportsAnd(&'ast SupportsAnd)
SupportsCondition(&'ast SupportsCondition)
SupportsConditionType(&'ast SupportsConditionType)
SupportsFeature(&'ast SupportsFeature)
SupportsInParens(&'ast SupportsInParens)
SupportsNot(&'ast SupportsNot)
SupportsOr(&'ast SupportsOr)
TagNameSelector(&'ast TagNameSelector)
Time(&'ast Time)
Token(&'ast Token)
TokenAndSpan(&'ast TokenAndSpan)
Tokens(&'ast Tokens)
TypeSelector(&'ast TypeSelector)
UnicodeRange(&'ast UnicodeRange)
UniversalSelector(&'ast UniversalSelector)
UnknownDimension(&'ast UnknownDimension)
Url(&'ast Url)
UrlModifier(&'ast UrlModifier)
UrlValue(&'ast UrlValue)
UrlValueRaw(&'ast UrlValueRaw)
VecCalcProductOrOperator(&'ast [CalcProductOrOperator], usize)
VecCalcValueOrOperator(&'ast [CalcValueOrOperator], usize)
VecComplexSelector(&'ast [ComplexSelector], usize)
VecComplexSelectorChildren(&'ast [ComplexSelectorChildren], usize)
VecComponentValue(&'ast [ComponentValue], usize)
VecCompoundSelector(&'ast [CompoundSelector], usize)
VecDocumentPreludeMatchingFunction(&'ast [DocumentPreludeMatchingFunction], usize)
VecIdent(&'ast [Ident], usize)
VecKeyframeSelector(&'ast [KeyframeSelector], usize)
VecLayerName(&'ast [LayerName], usize)
VecMediaConditionAllType(&'ast [MediaConditionAllType], usize)
VecMediaConditionWithoutOrType(&'ast [MediaConditionWithoutOrType], usize)
VecMediaQuery(&'ast [MediaQuery], usize)
VecPageSelector(&'ast [PageSelector], usize)
VecPageSelectorPseudo(&'ast [PageSelectorPseudo], usize)
VecPseudoClassSelectorChildren(&'ast [PseudoClassSelectorChildren], usize)
VecPseudoElementSelectorChildren(&'ast [PseudoElementSelectorChildren], usize)
VecRelativeSelector(&'ast [RelativeSelector], usize)
VecRule(&'ast [Rule], usize)
VecSubclassSelector(&'ast [SubclassSelector], usize)
VecSupportsConditionType(&'ast [SupportsConditionType], usize)
VecTokenAndSpan(&'ast [TokenAndSpan], usize)
VecUrlModifier(&'ast [UrlModifier], usize)
WqName(&'ast WqName)
Trait Implementations
sourceimpl<'ast> Clone for AstNodeRef<'ast>
impl<'ast> Clone for AstNodeRef<'ast>
sourcefn clone(&self) -> AstNodeRef<'ast>
fn clone(&self) -> AstNodeRef<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'ast> Debug for AstNodeRef<'ast>
impl<'ast> Debug for AstNodeRef<'ast>
sourceimpl<'ast> PartialEq<AstNodeRef<'ast>> for AstNodeRef<'ast>
impl<'ast> PartialEq<AstNodeRef<'ast>> for AstNodeRef<'ast>
sourcefn eq(&self, other: &AstNodeRef<'ast>) -> bool
fn eq(&self, other: &AstNodeRef<'ast>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AstNodeRef<'ast>) -> bool
fn ne(&self, other: &AstNodeRef<'ast>) -> bool
This method tests for !=
.
impl<'ast> Copy for AstNodeRef<'ast>
impl<'ast> StructuralPartialEq for AstNodeRef<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for AstNodeRef<'ast>
impl<'ast> Send for AstNodeRef<'ast>
impl<'ast> Sync for AstNodeRef<'ast>
impl<'ast> Unpin for AstNodeRef<'ast>
impl<'ast> UnwindSafe for AstNodeRef<'ast>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more