swc_html_visit

Type Alias AstKindPath

source
pub type AstKindPath = AstKindPath<AstParentKind>;

Aliased Type§

struct AstKindPath { /* private fields */ }

Implementations

§

impl<K> AstKindPath<K>
where K: ParentKind,

pub fn new(path: Vec<K>) -> AstKindPath<K>

pub fn with_guard(&mut self, kind: K) -> AstKindPathGuard<'_, K>

pub fn with_index_guard(&mut self, index: usize) -> AstKindPathIndexGuard<'_, K>

pub fn with<Ret>( &mut self, path: K, op: impl FnOnce(&mut AstKindPath<K>) -> Ret, ) -> Ret

👎Deprecated: Use with_guard instead

pub fn with_index<Ret>( &mut self, index: usize, op: impl FnOnce(&mut AstKindPath<K>) -> Ret, ) -> Ret

👎Deprecated: Use with_index_guard instead

Trait Implementations

§

impl<K> Clone for AstKindPath<K>
where K: Clone + ParentKind,

§

fn clone(&self) -> AstKindPath<K>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<K> Debug for AstKindPath<K>
where K: Debug + ParentKind,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<K> Default for AstKindPath<K>
where K: ParentKind,

§

fn default() -> AstKindPath<K>

Returns the “default value” for a type. Read more
§

impl<K> Deref for AstKindPath<K>
where K: ParentKind,

§

type Target = Vec<K>

The resulting type after dereferencing.
§

fn deref(&self) -> &<AstKindPath<K> as Deref>::Target

Dereferences the value.
§

impl<K> PartialEq for AstKindPath<K>
where K: PartialEq + ParentKind,

§

fn eq(&self, other: &AstKindPath<K>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<K> Eq for AstKindPath<K>
where K: Eq + ParentKind,

§

impl<K> StructuralPartialEq for AstKindPath<K>
where K: ParentKind,