WalkItemKind in rustc_ast::visit - Rust
Description: API documentation for the Rust `WalkItemKind` trait in crate `rustc_ast`.

Skip to main content

## WalkItemKind

# Trait WalkItemKind

Source

    pub trait WalkItemKind {
        type Ctxt;

        // Required method
        fn walk<'a, V: Visitor<'a>>(
            &'a self,
            attrs: &AttrVec,
            span: Span,
            id: NodeId,
            visibility: &'a Visibility,
            ctxt: Self::Ctxt,
            vis: &mut V,
        ) -> V::Result;
    }

## Required Associated Types§

Source

#### type Ctxt

## Required Methods§

Source

#### fn walk<'a, V: Visitor<'a>>( &'a self, attrs: &AttrVec, span: Span, id: NodeId, visibility: &'a Visibility, ctxt: Self::Ctxt, vis: &mut V, ) -> V::Result

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementors§

Source§

### impl WalkItemKind for AssocItemKind

Source§

#### type Ctxt = AssocCtxt

Source§

### impl WalkItemKind for ForeignItemKind

Source§

#### type Ctxt = ()

Source§

### impl WalkItemKind for ItemKind

Source§

#### type Ctxt = ()