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 Option<Box<ImportLayerName>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<ImportLayerName>>
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 Option<PageSelectorType>
impl<V: ?Sized + Visit> VisitWith<V> for Option<PageSelectorType>
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 AnPlusB
impl<V: ?Sized + Visit> VisitWith<V> for AnPlusB
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<PseudoElementSelectorChildren>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<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 DelimiterValue
impl<V: ?Sized + Visit> VisitWith<V> for DelimiterValue
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 CombinatorValue
impl<V: ?Sized + Visit> VisitWith<V> for CombinatorValue
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Span
impl<V: ?Sized + Visit> VisitWith<V> for Span
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<RelativeSelector>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<RelativeSelector>
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 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 SizeFeaturePlain
impl<V: ?Sized + Visit> VisitWith<V> for SizeFeaturePlain
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<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, 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