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 [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<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 GeneralEnclosed
impl<V: ?Sized + Visit> VisitWith<V> for GeneralEnclosed
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [KeyframeSelector]
impl<V: ?Sized + Visit> VisitWith<V> for [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<UrlModifier>
impl<V: ?Sized + Visit> VisitWith<V> for 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 MediaType
impl<V: ?Sized + Visit> VisitWith<V> for MediaType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [ForgivingRelativeSelector]
impl<V: ?Sized + Visit> VisitWith<V> for [ForgivingRelativeSelector]
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 UnknownDimension
impl<V: ?Sized + Visit> VisitWith<V> for UnknownDimension
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 Vec<Rule>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<Rule>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<i32>
impl<V: ?Sized + Visit> VisitWith<V> for Option<i32>
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 MediaFeatureRangeInterval
impl<V: ?Sized + Visit> VisitWith<V> for MediaFeatureRangeInterval
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 Token
impl<V: ?Sized + Visit> VisitWith<V> for Token
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for CalcSum
impl<V: ?Sized + Visit> VisitWith<V> for CalcSum
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 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 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 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 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 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 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 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 RelativeSelector
impl<V: ?Sized + Visit> VisitWith<V> for RelativeSelector
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for AtRule
impl<V: ?Sized + Visit> VisitWith<V> for AtRule
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<MediaQueryList>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<MediaQueryList>>
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 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 [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 SupportsInParens
impl<V: ?Sized + Visit> VisitWith<V> for SupportsInParens
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 MediaConditionWithoutOrType
impl<V: ?Sized + Visit> VisitWith<V> for MediaConditionWithoutOrType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<ForgivingComplexSelector>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<ForgivingComplexSelector>
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<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 Vec<SubclassSelector>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<SubclassSelector>
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 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 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 MediaCondition
impl<V: ?Sized + Visit> VisitWith<V> for MediaCondition
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for LayerPrelude
impl<V: ?Sized + Visit> VisitWith<V> for LayerPrelude
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<ComplexSelector>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<ComplexSelector>
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 MediaConditionType
impl<V: ?Sized + Visit> VisitWith<V> for MediaConditionType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for i32
impl<V: ?Sized + Visit> VisitWith<V> for i32
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