Trait swc_css_visit::VisitWith
source · pub trait VisitWith<V: ?Sized + Visit> {
// Required methods
fn visit_with(&self, v: &mut V);
fn visit_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_with(&self, v: &mut V)
fn visit_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
sourcefn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v
Implementations on Foreign Types§
source§impl<V: ?Sized + Visit> VisitWith<V> for Combinator
impl<V: ?Sized + Visit> VisitWith<V> for Combinator
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [SupportsConditionType]
impl<V: ?Sized + Visit> VisitWith<V> for [SupportsConditionType]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Namespace>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Namespace>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for AnPlusBNotation
impl<V: ?Sized + Visit> VisitWith<V> for AnPlusBNotation
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [CalcProductOrOperator]
impl<V: ?Sized + Visit> VisitWith<V> for [CalcProductOrOperator]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Vec<PseudoClassSelectorChildren>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Vec<PseudoClassSelectorChildren>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for MediaFeatureName
impl<V: ?Sized + Visit> VisitWith<V> for MediaFeatureName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<ContainerQueryType>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<ContainerQueryType>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Delimiter
impl<V: ?Sized + Visit> VisitWith<V> for Delimiter
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for CalcValue
impl<V: ?Sized + Visit> VisitWith<V> for CalcValue
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for StyleBlock
impl<V: ?Sized + Visit> VisitWith<V> for StyleBlock
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for IdSelector
impl<V: ?Sized + Visit> VisitWith<V> for IdSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TypeSelector
impl<V: ?Sized + Visit> VisitWith<V> for TypeSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for PseudoElementSelectorChildren
impl<V: ?Sized + Visit> VisitWith<V> for PseudoElementSelectorChildren
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Frequency
impl<V: ?Sized + Visit> VisitWith<V> for Frequency
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for UrlValue
impl<V: ?Sized + Visit> VisitWith<V> for UrlValue
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for SupportsNot
impl<V: ?Sized + Visit> VisitWith<V> for SupportsNot
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ImportConditions
impl<V: ?Sized + Visit> VisitWith<V> for ImportConditions
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for SizeFeatureRangeInterval
impl<V: ?Sized + Visit> VisitWith<V> for SizeFeatureRangeInterval
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Resolution
impl<V: ?Sized + Visit> VisitWith<V> for Resolution
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<PageSelector>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<PageSelector>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for AtRuleName
impl<V: ?Sized + Visit> VisitWith<V> for AtRuleName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<ImportantFlag>
impl<V: ?Sized + Visit> VisitWith<V> for Option<ImportantFlag>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for DashedIdent
impl<V: ?Sized + Visit> VisitWith<V> for DashedIdent
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for LengthPercentage
impl<V: ?Sized + Visit> VisitWith<V> for LengthPercentage
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for NamespacePreludeUri
impl<V: ?Sized + Visit> VisitWith<V> for NamespacePreludeUri
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [Rule]
impl<V: ?Sized + Visit> VisitWith<V> for [Rule]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for FontFeatureValuesPrelude
impl<V: ?Sized + Visit> VisitWith<V> for FontFeatureValuesPrelude
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<CalcValueOrOperator>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<CalcValueOrOperator>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for SubclassSelector
impl<V: ?Sized + Visit> VisitWith<V> for SubclassSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for CompoundSelector
impl<V: ?Sized + Visit> VisitWith<V> for CompoundSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [PseudoElementSelectorChildren]
impl<V: ?Sized + Visit> VisitWith<V> for [PseudoElementSelectorChildren]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for RelativeSelectorList
impl<V: ?Sized + Visit> VisitWith<V> for RelativeSelectorList
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Percentage
impl<V: ?Sized + Visit> VisitWith<V> for Percentage
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [FamilyName]
impl<V: ?Sized + Visit> VisitWith<V> for [FamilyName]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for QualifiedRulePrelude
impl<V: ?Sized + Visit> VisitWith<V> for QualifiedRulePrelude
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for NamedNamespace
impl<V: ?Sized + Visit> VisitWith<V> for NamedNamespace
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Hue
impl<V: ?Sized + Visit> VisitWith<V> for Hue
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for SizeFeatureBoolean
impl<V: ?Sized + Visit> VisitWith<V> for SizeFeatureBoolean
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<AttributeSelectorModifier>
impl<V: ?Sized + Visit> VisitWith<V> for Option<AttributeSelectorModifier>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for CalcOperatorType
impl<V: ?Sized + Visit> VisitWith<V> for CalcOperatorType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TagNameSelector
impl<V: ?Sized + Visit> VisitWith<V> for TagNameSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [UrlModifier]
impl<V: ?Sized + Visit> VisitWith<V> for [UrlModifier]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<NamespacePrefix>
impl<V: ?Sized + Visit> VisitWith<V> for Option<NamespacePrefix>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [CompoundSelector]
impl<V: ?Sized + Visit> VisitWith<V> for [CompoundSelector]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [ComplexSelector]
impl<V: ?Sized + Visit> VisitWith<V> for [ComplexSelector]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Stylesheet
impl<V: ?Sized + Visit> VisitWith<V> for Stylesheet
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for CalcProductOrOperator
impl<V: ?Sized + Visit> VisitWith<V> for CalcProductOrOperator
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<TypeSelector>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<TypeSelector>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Vec<UrlModifier>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Vec<UrlModifier>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Combinator>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Combinator>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ImportantFlag
impl<V: ?Sized + Visit> VisitWith<V> for ImportantFlag
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V, T> VisitWith<V> for Box<T>where
V: ?Sized + Visit,
T: 'static + VisitWith<V>,
impl<V, T> VisitWith<V> for Box<T>where V: ?Sized + Visit, T: 'static + VisitWith<V>,
source§fn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v