Struct rustc_hir::intravisit::ErasedMap[−][src]

pub struct ErasedMap<'hir>(&'hir dyn Map<'hir>);
Expand description

An erased version of Map<'hir>, using dynamic dispatch. NOTE: This type is effectively only usable with NestedVisitorMap::None.

Trait Implementations

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

fn find(&self, _: HirId) -> Option<Node<'hir>>[src]

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

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

fn item(&self, id: ItemId) -> &'hir Item<'hir>[src]

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

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

fn foreign_item(&self, id: ForeignItemId) -> &'hir ForeignItem<'hir>[src]

Auto Trait Implementations

impl<'hir> !RefUnwindSafe for ErasedMap<'hir>

impl<'hir> !Send for ErasedMap<'hir>

impl<'hir> !Sync for ErasedMap<'hir>

impl<'hir> Unpin for ErasedMap<'hir>

impl<'hir> !UnwindSafe for ErasedMap<'hir>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.