pub enum AstParentKind {
Show 173 variants
AbsoluteColorBase(AbsoluteColorBaseField),
AlphaValue(AlphaValueField),
AnPlusB(AnPlusBField),
AnPlusBNotation(AnPlusBNotationField),
Angle(AngleField),
AnglePercentage(AnglePercentageField),
AnyNamespace(AnyNamespaceField),
AtRule(AtRuleField),
AtRuleName(AtRuleNameField),
AtRulePrelude(AtRulePreludeField),
AttributeSelector(AttributeSelectorField),
AttributeSelectorMatcher(AttributeSelectorMatcherField),
AttributeSelectorMatcherValue(AttributeSelectorMatcherValueField),
AttributeSelectorModifier(AttributeSelectorModifierField),
AttributeSelectorValue(AttributeSelectorValueField),
BinOp(BinOpField),
CalcOperator(CalcOperatorField),
CalcOperatorType(CalcOperatorTypeField),
CalcProduct(CalcProductField),
CalcProductOrOperator(CalcProductOrOperatorField),
CalcSum(CalcSumField),
CalcValue(CalcValueField),
CalcValueOrOperator(CalcValueOrOperatorField),
ClassSelector(ClassSelectorField),
CmykComponent(CmykComponentField),
Color(ColorField),
ColorProfileName(ColorProfileNameField),
Combinator(CombinatorField),
CombinatorValue(CombinatorValueField),
ComplexSelector(ComplexSelectorField),
ComplexSelectorChildren(ComplexSelectorChildrenField),
ComponentValue(ComponentValueField),
CompoundSelector(CompoundSelectorField),
CompoundSelectorList(CompoundSelectorListField),
ContainerCondition(ContainerConditionField),
ContainerName(ContainerNameField),
ContainerQuery(ContainerQueryField),
ContainerQueryAnd(ContainerQueryAndField),
ContainerQueryNot(ContainerQueryNotField),
ContainerQueryOr(ContainerQueryOrField),
ContainerQueryType(ContainerQueryTypeField),
CustomHighlightName(CustomHighlightNameField),
CustomIdent(CustomIdentField),
CustomMediaQuery(CustomMediaQueryField),
CustomMediaQueryMediaType(CustomMediaQueryMediaTypeField),
CustomPropertyName(CustomPropertyNameField),
DashedIdent(DashedIdentField),
Declaration(DeclarationField),
DeclarationName(DeclarationNameField),
DeclarationOrAtRule(DeclarationOrAtRuleField),
Delimiter(DelimiterField),
DelimiterValue(DelimiterValueField),
Dimension(DimensionField),
DimensionToken(DimensionTokenField),
DocumentPrelude(DocumentPreludeField),
DocumentPreludeMatchingFunction(DocumentPreludeMatchingFunctionField),
ExtensionName(ExtensionNameField),
FamilyName(FamilyNameField),
Flex(FlexField),
FontFeatureValuesPrelude(FontFeatureValuesPreludeField),
ForgivingComplexSelector(ForgivingComplexSelectorField),
ForgivingRelativeSelector(ForgivingRelativeSelectorField),
ForgivingRelativeSelectorList(ForgivingRelativeSelectorListField),
ForgivingSelectorList(ForgivingSelectorListField),
Frequency(FrequencyField),
FrequencyPercentage(FrequencyPercentageField),
Function(FunctionField),
FunctionName(FunctionNameField),
GeneralEnclosed(GeneralEnclosedField),
HexColor(HexColorField),
Hue(HueField),
IdSelector(IdSelectorField),
Ident(IdentField),
ImportConditions(ImportConditionsField),
ImportHref(ImportHrefField),
ImportLayerName(ImportLayerNameField),
ImportPrelude(ImportPreludeField),
ImportantFlag(ImportantFlagField),
Integer(IntegerField),
KeyframeBlock(KeyframeBlockField),
KeyframeSelector(KeyframeSelectorField),
KeyframesName(KeyframesNameField),
KeyframesPseudoFunction(KeyframesPseudoFunctionField),
KeyframesPseudoPrefix(KeyframesPseudoPrefixField),
LayerName(LayerNameField),
LayerNameList(LayerNameListField),
LayerPrelude(LayerPreludeField),
Length(LengthField),
LengthPercentage(LengthPercentageField),
ListOfComponentValues(ListOfComponentValuesField),
MediaAnd(MediaAndField),
MediaCondition(MediaConditionField),
MediaConditionAllType(MediaConditionAllTypeField),
MediaConditionType(MediaConditionTypeField),
MediaConditionWithoutOr(MediaConditionWithoutOrField),
MediaConditionWithoutOrType(MediaConditionWithoutOrTypeField),
MediaFeature(MediaFeatureField),
MediaFeatureBoolean(MediaFeatureBooleanField),
MediaFeatureName(MediaFeatureNameField),
MediaFeaturePlain(MediaFeaturePlainField),
MediaFeatureRange(MediaFeatureRangeField),
MediaFeatureRangeComparison(MediaFeatureRangeComparisonField),
MediaFeatureRangeInterval(MediaFeatureRangeIntervalField),
MediaFeatureValue(MediaFeatureValueField),
MediaInParens(MediaInParensField),
MediaNot(MediaNotField),
MediaOr(MediaOrField),
MediaQuery(MediaQueryField),
MediaQueryList(MediaQueryListField),
MediaType(MediaTypeField),
NamedNamespace(NamedNamespaceField),
Namespace(NamespaceField),
NamespacePrefix(NamespacePrefixField),
NamespacePrelude(NamespacePreludeField),
NamespacePreludeUri(NamespacePreludeUriField),
NestingSelector(NestingSelectorField),
Number(NumberField),
NumberType(NumberTypeField),
PageSelector(PageSelectorField),
PageSelectorList(PageSelectorListField),
PageSelectorPseudo(PageSelectorPseudoField),
PageSelectorType(PageSelectorTypeField),
Percentage(PercentageField),
PseudoClassSelector(PseudoClassSelectorField),
PseudoClassSelectorChildren(PseudoClassSelectorChildrenField),
PseudoElementSelector(PseudoElementSelectorField),
PseudoElementSelectorChildren(PseudoElementSelectorChildrenField),
QualifiedRule(QualifiedRuleField),
QualifiedRulePrelude(QualifiedRulePreludeField),
QueryInParens(QueryInParensField),
Ratio(RatioField),
RelativeSelector(RelativeSelectorField),
RelativeSelectorList(RelativeSelectorListField),
Resolution(ResolutionField),
Rule(RuleField),
ScopeRange(ScopeRangeField),
SelectorList(SelectorListField),
SequenceOfCustomIdents(SequenceOfCustomIdentsField),
SimpleBlock(SimpleBlockField),
SizeFeature(SizeFeatureField),
SizeFeatureBoolean(SizeFeatureBooleanField),
SizeFeatureName(SizeFeatureNameField),
SizeFeaturePlain(SizeFeaturePlainField),
SizeFeatureRange(SizeFeatureRangeField),
SizeFeatureRangeComparison(SizeFeatureRangeComparisonField),
SizeFeatureRangeInterval(SizeFeatureRangeIntervalField),
SizeFeatureValue(SizeFeatureValueField),
Str(StrField),
StyleBlock(StyleBlockField),
Stylesheet(StylesheetField),
SubclassSelector(SubclassSelectorField),
SupportsAnd(SupportsAndField),
SupportsCondition(SupportsConditionField),
SupportsConditionType(SupportsConditionTypeField),
SupportsFeature(SupportsFeatureField),
SupportsInParens(SupportsInParensField),
SupportsNot(SupportsNotField),
SupportsOr(SupportsOrField),
TagNameSelector(TagNameSelectorField),
Time(TimeField),
TimePercentage(TimePercentageField),
Token(TokenField),
TokenAndSpan(TokenAndSpanField),
TypeSelector(TypeSelectorField),
UnicodeRange(UnicodeRangeField),
UniversalSelector(UniversalSelectorField),
UnknownDimension(UnknownDimensionField),
Url(UrlField),
UrlKeyValue(UrlKeyValueField),
UrlModifier(UrlModifierField),
UrlValue(UrlValueField),
UrlValueRaw(UrlValueRawField),
WqName(WqNameField),
}
Variants§
AbsoluteColorBase(AbsoluteColorBaseField)
AlphaValue(AlphaValueField)
AnPlusB(AnPlusBField)
AnPlusBNotation(AnPlusBNotationField)
Angle(AngleField)
AnglePercentage(AnglePercentageField)
AnyNamespace(AnyNamespaceField)
AtRule(AtRuleField)
AtRuleName(AtRuleNameField)
AtRulePrelude(AtRulePreludeField)
AttributeSelector(AttributeSelectorField)
AttributeSelectorMatcher(AttributeSelectorMatcherField)
AttributeSelectorMatcherValue(AttributeSelectorMatcherValueField)
AttributeSelectorModifier(AttributeSelectorModifierField)
AttributeSelectorValue(AttributeSelectorValueField)
BinOp(BinOpField)
CalcOperator(CalcOperatorField)
CalcOperatorType(CalcOperatorTypeField)
CalcProduct(CalcProductField)
CalcProductOrOperator(CalcProductOrOperatorField)
CalcSum(CalcSumField)
CalcValue(CalcValueField)
CalcValueOrOperator(CalcValueOrOperatorField)
ClassSelector(ClassSelectorField)
CmykComponent(CmykComponentField)
Color(ColorField)
ColorProfileName(ColorProfileNameField)
Combinator(CombinatorField)
CombinatorValue(CombinatorValueField)
ComplexSelector(ComplexSelectorField)
ComplexSelectorChildren(ComplexSelectorChildrenField)
ComponentValue(ComponentValueField)
CompoundSelector(CompoundSelectorField)
CompoundSelectorList(CompoundSelectorListField)
ContainerCondition(ContainerConditionField)
ContainerName(ContainerNameField)
ContainerQuery(ContainerQueryField)
ContainerQueryAnd(ContainerQueryAndField)
ContainerQueryNot(ContainerQueryNotField)
ContainerQueryOr(ContainerQueryOrField)
ContainerQueryType(ContainerQueryTypeField)
CustomHighlightName(CustomHighlightNameField)
CustomIdent(CustomIdentField)
CustomMediaQuery(CustomMediaQueryField)
CustomMediaQueryMediaType(CustomMediaQueryMediaTypeField)
CustomPropertyName(CustomPropertyNameField)
DashedIdent(DashedIdentField)
Declaration(DeclarationField)
DeclarationName(DeclarationNameField)
DeclarationOrAtRule(DeclarationOrAtRuleField)
Delimiter(DelimiterField)
DelimiterValue(DelimiterValueField)
Dimension(DimensionField)
DimensionToken(DimensionTokenField)
DocumentPrelude(DocumentPreludeField)
DocumentPreludeMatchingFunction(DocumentPreludeMatchingFunctionField)
ExtensionName(ExtensionNameField)
FamilyName(FamilyNameField)
Flex(FlexField)
FontFeatureValuesPrelude(FontFeatureValuesPreludeField)
ForgivingComplexSelector(ForgivingComplexSelectorField)
ForgivingRelativeSelector(ForgivingRelativeSelectorField)
ForgivingRelativeSelectorList(ForgivingRelativeSelectorListField)
ForgivingSelectorList(ForgivingSelectorListField)
Frequency(FrequencyField)
FrequencyPercentage(FrequencyPercentageField)
Function(FunctionField)
FunctionName(FunctionNameField)
GeneralEnclosed(GeneralEnclosedField)
HexColor(HexColorField)
Hue(HueField)
IdSelector(IdSelectorField)
Ident(IdentField)
ImportConditions(ImportConditionsField)
ImportHref(ImportHrefField)
ImportLayerName(ImportLayerNameField)
ImportPrelude(ImportPreludeField)
ImportantFlag(ImportantFlagField)
Integer(IntegerField)
KeyframeBlock(KeyframeBlockField)
KeyframeSelector(KeyframeSelectorField)
KeyframesName(KeyframesNameField)
KeyframesPseudoFunction(KeyframesPseudoFunctionField)
KeyframesPseudoPrefix(KeyframesPseudoPrefixField)
LayerName(LayerNameField)
LayerNameList(LayerNameListField)
LayerPrelude(LayerPreludeField)
Length(LengthField)
LengthPercentage(LengthPercentageField)
ListOfComponentValues(ListOfComponentValuesField)
MediaAnd(MediaAndField)
MediaCondition(MediaConditionField)
MediaConditionAllType(MediaConditionAllTypeField)
MediaConditionType(MediaConditionTypeField)
MediaConditionWithoutOr(MediaConditionWithoutOrField)
MediaConditionWithoutOrType(MediaConditionWithoutOrTypeField)
MediaFeature(MediaFeatureField)
MediaFeatureBoolean(MediaFeatureBooleanField)
MediaFeatureName(MediaFeatureNameField)
MediaFeaturePlain(MediaFeaturePlainField)
MediaFeatureRange(MediaFeatureRangeField)
MediaFeatureRangeComparison(MediaFeatureRangeComparisonField)
MediaFeatureRangeInterval(MediaFeatureRangeIntervalField)
MediaFeatureValue(MediaFeatureValueField)
MediaInParens(MediaInParensField)
MediaNot(MediaNotField)
MediaOr(MediaOrField)
MediaQuery(MediaQueryField)
MediaQueryList(MediaQueryListField)
MediaType(MediaTypeField)
NamedNamespace(NamedNamespaceField)
Namespace(NamespaceField)
NamespacePrefix(NamespacePrefixField)
NamespacePrelude(NamespacePreludeField)
NamespacePreludeUri(NamespacePreludeUriField)
NestingSelector(NestingSelectorField)
Number(NumberField)
NumberType(NumberTypeField)
PageSelector(PageSelectorField)
PageSelectorList(PageSelectorListField)
PageSelectorPseudo(PageSelectorPseudoField)
PageSelectorType(PageSelectorTypeField)
Percentage(PercentageField)
PseudoClassSelector(PseudoClassSelectorField)
PseudoClassSelectorChildren(PseudoClassSelectorChildrenField)
PseudoElementSelector(PseudoElementSelectorField)
PseudoElementSelectorChildren(PseudoElementSelectorChildrenField)
QualifiedRule(QualifiedRuleField)
QualifiedRulePrelude(QualifiedRulePreludeField)
QueryInParens(QueryInParensField)
Ratio(RatioField)
RelativeSelector(RelativeSelectorField)
RelativeSelectorList(RelativeSelectorListField)
Resolution(ResolutionField)
Rule(RuleField)
ScopeRange(ScopeRangeField)
SelectorList(SelectorListField)
SequenceOfCustomIdents(SequenceOfCustomIdentsField)
SimpleBlock(SimpleBlockField)
SizeFeature(SizeFeatureField)
SizeFeatureBoolean(SizeFeatureBooleanField)
SizeFeatureName(SizeFeatureNameField)
SizeFeaturePlain(SizeFeaturePlainField)
SizeFeatureRange(SizeFeatureRangeField)
SizeFeatureRangeComparison(SizeFeatureRangeComparisonField)
SizeFeatureRangeInterval(SizeFeatureRangeIntervalField)
SizeFeatureValue(SizeFeatureValueField)
Str(StrField)
StyleBlock(StyleBlockField)
Stylesheet(StylesheetField)
SubclassSelector(SubclassSelectorField)
SupportsAnd(SupportsAndField)
SupportsCondition(SupportsConditionField)
SupportsConditionType(SupportsConditionTypeField)
SupportsFeature(SupportsFeatureField)
SupportsInParens(SupportsInParensField)
SupportsNot(SupportsNotField)
SupportsOr(SupportsOrField)
TagNameSelector(TagNameSelectorField)
Time(TimeField)
TimePercentage(TimePercentageField)
Token(TokenField)
TokenAndSpan(TokenAndSpanField)
TypeSelector(TypeSelectorField)
UnicodeRange(UnicodeRangeField)
UniversalSelector(UniversalSelectorField)
UnknownDimension(UnknownDimensionField)
Url(UrlField)
UrlKeyValue(UrlKeyValueField)
UrlModifier(UrlModifierField)
UrlValue(UrlValueField)
UrlValueRaw(UrlValueRawField)
WqName(WqNameField)
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 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 for AstParentKind
impl PartialEq for AstParentKind
Source§impl PartialOrd for AstParentKind
impl PartialOrd for AstParentKind
impl Copy for AstParentKind
impl Eq for AstParentKind
impl StructuralPartialEq for AstParentKind
Auto Trait Implementations§
impl Freeze for AstParentKind
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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more