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 PseudoClassSelectorChildren
impl<V: ?Sized + Visit> VisitWith<V> for PseudoClassSelectorChildren
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for UniversalSelector
impl<V: ?Sized + Visit> VisitWith<V> for UniversalSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for AnglePercentage
impl<V: ?Sized + Visit> VisitWith<V> for AnglePercentage
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 AttributeSelectorValue
impl<V: ?Sized + Visit> VisitWith<V> for AttributeSelectorValue
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<NestingSelector>
impl<V: ?Sized + Visit> VisitWith<V> for Option<NestingSelector>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for PageSelectorType
impl<V: ?Sized + Visit> VisitWith<V> for PageSelectorType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for MediaConditionWithoutOr
impl<V: ?Sized + Visit> VisitWith<V> for MediaConditionWithoutOr
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [Ident]
impl<V: ?Sized + Visit> VisitWith<V> for [Ident]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<CalcProductOrOperator>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<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<ImportConditions>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<ImportConditions>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<PseudoElementSelectorChildren>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<PseudoElementSelectorChildren>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for KeyframeBlock
impl<V: ?Sized + Visit> VisitWith<V> for KeyframeBlock
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for NamespacePrefix
impl<V: ?Sized + Visit> VisitWith<V> for NamespacePrefix
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for CompoundSelectorList
impl<V: ?Sized + Visit> VisitWith<V> for CompoundSelectorList
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 ColorProfileName
impl<V: ?Sized + Visit> VisitWith<V> for ColorProfileName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for MediaQueryList
impl<V: ?Sized + Visit> VisitWith<V> for MediaQueryList
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 Number
impl<V: ?Sized + Visit> VisitWith<V> for Number
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<AttributeSelectorValue>
impl<V: ?Sized + Visit> VisitWith<V> for Option<AttributeSelectorValue>
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<PageSelectorPseudo>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Vec<PageSelectorPseudo>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ContainerQueryOr
impl<V: ?Sized + Visit> VisitWith<V> for ContainerQueryOr
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [MediaConditionAllType]
impl<V: ?Sized + Visit> VisitWith<V> for [MediaConditionAllType]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for SelectorList
impl<V: ?Sized + Visit> VisitWith<V> for SelectorList
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for WqName
impl<V: ?Sized + Visit> VisitWith<V> for WqName
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<UrlValue>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<UrlValue>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for KeyframesPseudoFunction
impl<V: ?Sized + Visit> VisitWith<V> for KeyframesPseudoFunction
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Time
impl<V: ?Sized + Visit> VisitWith<V> for Time
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [ComplexSelectorChildren]
impl<V: ?Sized + Visit> VisitWith<V> for [ComplexSelectorChildren]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<MediaQuery>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<MediaQuery>
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 ContainerQueryAnd
impl<V: ?Sized + Visit> VisitWith<V> for ContainerQueryAnd
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ComponentValue
impl<V: ?Sized + Visit> VisitWith<V> for ComponentValue
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for UrlValueRaw
impl<V: ?Sized + Visit> VisitWith<V> for UrlValueRaw
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 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 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 PseudoClassSelector
impl<V: ?Sized + Visit> VisitWith<V> for PseudoClassSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<JsWord>
impl<V: ?Sized + Visit> VisitWith<V> for Option<JsWord>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for FrequencyPercentage
impl<V: ?Sized + Visit> VisitWith<V> for FrequencyPercentage
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ContainerQueryNot
impl<V: ?Sized + Visit> VisitWith<V> for ContainerQueryNot
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 Option<Ident>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Ident>
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 ImportPrelude
impl<V: ?Sized + Visit> VisitWith<V> for ImportPrelude
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ContainerName
impl<V: ?Sized + Visit> VisitWith<V> for ContainerName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for AtRulePrelude
impl<V: ?Sized + Visit> VisitWith<V> for AtRulePrelude
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 Vec<ComponentValue>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<ComponentValue>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for SizeFeatureName
impl<V: ?Sized + Visit> VisitWith<V> for SizeFeatureName
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 UnicodeRange
impl<V: ?Sized + Visit> VisitWith<V> for UnicodeRange
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: ?Sized + Visit> VisitWith<V> for [ComponentValue]
impl<V: ?Sized + Visit> VisitWith<V> for [ComponentValue]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [DocumentPreludeMatchingFunction]
impl<V: ?Sized + Visit> VisitWith<V> for [DocumentPreludeMatchingFunction]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<SimpleBlock>
impl<V: ?Sized + Visit> VisitWith<V> for Option<SimpleBlock>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for KeyframesPseudoPrefix
impl<V: ?Sized + Visit> VisitWith<V> for KeyframesPseudoPrefix
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [ContainerQueryType]
impl<V: ?Sized + Visit> VisitWith<V> for [ContainerQueryType]
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 FunctionName
impl<V: ?Sized + Visit> VisitWith<V> for FunctionName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<KeyframeSelector>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<KeyframeSelector>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<DocumentPreludeMatchingFunction>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<DocumentPreludeMatchingFunction>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for QueryInParens
impl<V: ?Sized + Visit> VisitWith<V> for QueryInParens
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for CustomHighlightName
impl<V: ?Sized + Visit> VisitWith<V> for CustomHighlightName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for HexColor
impl<V: ?Sized + Visit> VisitWith<V> for HexColor
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<ContainerName>
impl<V: ?Sized + Visit> VisitWith<V> for Option<ContainerName>
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 Integer
impl<V: ?Sized + Visit> VisitWith<V> for Integer
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for DocumentPrelude
impl<V: ?Sized + Visit> VisitWith<V> for DocumentPrelude
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ImportLayerName
impl<V: ?Sized + Visit> VisitWith<V> for ImportLayerName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ClassSelector
impl<V: ?Sized + Visit> VisitWith<V> for ClassSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for MediaOr
impl<V: ?Sized + Visit> VisitWith<V> for MediaOr
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for SupportsCondition
impl<V: ?Sized + Visit> VisitWith<V> for SupportsCondition
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