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 MediaCondition
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaCondition
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 HexColor
impl<V: ?Sized + VisitAll> VisitAllWith<V> for HexColor
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 AnPlusBNotation
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AnPlusBNotation
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 MediaOr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaOr
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<Ident>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Ident>
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 Declaration
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Declaration
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<SupportsConditionType>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<SupportsConditionType>
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 ComplexSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 Token
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Token
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 SizeFeatureRangeInterval
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SizeFeatureRangeInterval
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 NamedNamespace
impl<V: ?Sized + VisitAll> VisitAllWith<V> for NamedNamespace
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 AtRuleName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AtRuleName
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 CalcProduct
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CalcProduct
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 NamespacePrefix
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 Time
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Time
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 ImportLayerName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 DashedIdent
impl<V: ?Sized + VisitAll> VisitAllWith<V> for DashedIdent
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 SupportsOr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SupportsOr
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 Angle
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Angle
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 ForgivingRelativeSelectorList
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ForgivingRelativeSelectorList
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 TimePercentage
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TimePercentage
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: ?Sized + VisitAll> VisitAllWith<V> for Vec<CompoundSelector>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 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 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 MediaType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MediaType
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 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 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 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 CalcOperator
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CalcOperator
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 NamespacePreludeUri
impl<V: ?Sized + VisitAll> VisitAllWith<V> for NamespacePreludeUri
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 AnyNamespace
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AnyNamespace
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 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 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 SizeFeatureRange
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SizeFeatureRange
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<UrlModifier>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<UrlModifier>
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 SupportsFeature
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SupportsFeature
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 AttributeSelectorModifier
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 Delimiter
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Delimiter
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 Option<Vec<UrlModifier>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Vec<UrlModifier>>
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 GeneralEnclosed
impl<V: ?Sized + VisitAll> VisitAllWith<V> for GeneralEnclosed
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 UrlValueRaw
impl<V: ?Sized + VisitAll> VisitAllWith<V> for UrlValueRaw
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 Option<Box<UrlValue>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<UrlValue>>
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<MediaConditionAllType>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<MediaConditionAllType>
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 UrlValue
impl<V: ?Sized + VisitAll> VisitAllWith<V> for UrlValue
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 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 Length
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Length
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 ForgivingRelativeSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 CalcSum
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CalcSum
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 Dimension
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Dimension
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 ComplexSelectorChildren
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ComplexSelectorChildren
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<TypeSelector>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<TypeSelector>>
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<JsWord>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<JsWord>
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 JsWord
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JsWord
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 CmykComponent
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CmykComponent
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<Ident>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Ident>
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 Atom
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Atom
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 NamespacePrelude
impl<V: ?Sized + VisitAll> VisitAllWith<V> for NamespacePrelude
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<Number>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Number>
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 PageSelector
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 Option<Box<MediaConditionType>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<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 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 SupportsNot
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SupportsNot
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 UrlModifier
impl<V: ?Sized + VisitAll> VisitAllWith<V> for UrlModifier
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