rustc_ast::visit

Trait WalkItemKind

Source
pub trait WalkItemKind: Sized {
    // Required method
    fn walk<'a, V: Visitor<'a>>(
        &'a self,
        item: &'a Item<Self>,
        ctxt: AssocCtxt,
        visitor: &mut V,
    ) -> V::Result;
}

Required Methods§

Source

fn walk<'a, V: Visitor<'a>>( &'a self, item: &'a Item<Self>, ctxt: AssocCtxt, visitor: &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§