Trait swc_css_visit::VisitAllWith
source · pub trait VisitAllWith<V: ?Sized + VisitAll> {
// Required methods
fn visit_all_with(&self, v: &mut V);
fn visit_all_children_with(&self, v: &mut V);
}
Expand description
A utility trait implemented for ast nodes, and allow to visit them with a visitor.
Required Methods§
sourcefn visit_all_with(&self, v: &mut V)
fn visit_all_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
sourcefn visit_all_children_with(&self, v: &mut V)
fn visit_all_children_with(&self, v: &mut V)
Visit children nodes of self with v
Implementations on Foreign Types§
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Span
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Span
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<ForgivingRelativeSelector>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<ForgivingRelativeSelector>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyframesPseudoFunction
impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyframesPseudoFunction
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for WqName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for WqName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for QualifiedRulePrelude
impl<V: ?Sized + VisitAll> VisitAllWith<V> for QualifiedRulePrelude
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for RelativeSelectorList
impl<V: ?Sized + VisitAll> VisitAllWith<V> for RelativeSelectorList
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaFeature
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaFeature
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportPrelude
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportPrelude
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for AtRule
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AtRule
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for UniversalSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for UniversalSelector
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for AtRulePrelude
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AtRulePrelude
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TokenAndSpan
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TokenAndSpan
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for SupportsInParens
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SupportsInParens
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for AnPlusB
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AnPlusB
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for DelimiterValue
impl<V: ?Sized + VisitAll> VisitAllWith<V> for DelimiterValue
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Flex
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Flex
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<NamespacePrefix>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<NamespacePrefix>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportantFlag
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportantFlag
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for PseudoElementSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for PseudoElementSelector
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<CalcProductOrOperator>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<CalcProductOrOperator>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyframeBlock
impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyframeBlock
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyframesPseudoPrefix
impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyframesPseudoPrefix
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaQueryList
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaQueryList
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<ComplexSelector>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<ComplexSelector>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for CompoundSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CompoundSelector
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for DeclarationOrAtRule
impl<V: ?Sized + VisitAll> VisitAllWith<V> for DeclarationOrAtRule
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaFeatureBoolean
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaFeatureBoolean
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ListOfComponentValues
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ListOfComponentValues
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Vec<PseudoClassSelectorChildren>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Vec<PseudoClassSelectorChildren>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for SizeFeaturePlain
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SizeFeaturePlain
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<ContainerName>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<ContainerName>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaQuery
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaQuery
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Rule>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Rule>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<MediaQueryList>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<MediaQueryList>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ComponentValue
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ComponentValue
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Ratio
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Ratio
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for CustomMediaQuery
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CustomMediaQuery
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for QualifiedRule
impl<V: ?Sized + VisitAll> VisitAllWith<V> for QualifiedRule
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for LayerName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for LayerName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ContainerQuery
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ContainerQuery
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for DeclarationName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for DeclarationName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Combinator
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Combinator
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Vec<PageSelectorPseudo>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Vec<PageSelectorPseudo>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<AtRulePrelude>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<AtRulePrelude>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Hue
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Hue
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ColorProfileName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ColorProfileName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<LayerName>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<LayerName>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<AttributeSelectorModifier>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<AttributeSelectorModifier>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Integer
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Integer
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Str
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Str
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for PageSelectorType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for PageSelectorType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ForgivingComplexSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ForgivingComplexSelector
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ContainerQueryNot
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ContainerQueryNot
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaFeaturePlain
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaFeaturePlain
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Stylesheet
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Stylesheet
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for SupportsAnd
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SupportsAnd
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for FamilyName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for FamilyName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for SelectorList
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SelectorList
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<MediaQuery>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<MediaQuery>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for FunctionName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for FunctionName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for SizeFeatureBoolean
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SizeFeatureBoolean
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for NestingSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for NestingSelector
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for IdSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for IdSelector
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<ImportLayerName>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<ImportLayerName>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for FrequencyPercentage
impl<V: ?Sized + VisitAll> VisitAllWith<V> for FrequencyPercentage
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<PageSelector>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<PageSelector>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for CalcOperatorType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CalcOperatorType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaConditionType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaConditionType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for AttributeSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AttributeSelector
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for CalcValueOrOperator
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CalcValueOrOperator
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V, T> VisitAllWith<V> for Box<T>where
V: ?Sized + VisitAll,
T: 'static + VisitAllWith<V>,
impl<V, T> VisitAllWith<V> for Box<T>where V: ?Sized + VisitAll, T: 'static + VisitAllWith<V>,
source§fn visit_all_children_with(&self, v: &mut V)
fn visit_all_children_with(&self, v: &mut V)
Visit children nodes of self with v