[−][src]Trait rustc_hir::intravisit::Map

pub trait Map<'hir> {
    fn find(&self, hir_id: HirId) -> Option<Node<'hir>>;
fn body(&self, id: BodyId) -> &'hir Body<'hir>;
fn item(&self, id: HirId) -> &'hir Item<'hir>;
fn trait_item(&self, id: TraitItemId) -> &'hir TraitItem<'hir>;
fn impl_item(&self, id: ImplItemId) -> &'hir ImplItem<'hir>; }

An abstract representation of the HIR rustc_middle::hir::map::Map.

Required methods

fn find(&self, hir_id: HirId) -> Option<Node<'hir>>

Retrieves the Node corresponding to id, returning None if cannot be found.

fn body(&self, id: BodyId) -> &'hir Body<'hir>

fn item(&self, id: HirId) -> &'hir Item<'hir>

fn trait_item(&self, id: TraitItemId) -> &'hir TraitItem<'hir>

fn impl_item(&self, id: ImplItemId) -> &'hir ImplItem<'hir>

Loading content...

Implementors

impl<'hir> Map<'hir> for ErasedMap<'hir>[src]

Loading content...