Skip to main content

## WalkItemKind

# Trait WalkItemKind

Source

    pub trait WalkItemKind {
        type Ctxt;

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

## Required Associated Types§

Source

#### type Ctxt

## Required Methods§

Source

#### fn walk<V: MutVisitor>( &mut self, attrs: &AttrVec, span: Span, id: NodeId, visibility: &mut 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", so this trait is not object safe.

## 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 = ()