rustc_resolve

Trait ToNameBinding

Source
pub(crate) trait ToNameBinding<'ra> {
    // Required method
    fn to_name_binding(
        self,
        arenas: &'ra ResolverArenas<'ra>,
    ) -> Interned<'ra, NameBindingData<'ra>>;
}

Required Methods§

Source

fn to_name_binding( self, arenas: &'ra ResolverArenas<'ra>, ) -> Interned<'ra, NameBindingData<'ra>>

Implementations on Foreign Types§

Source§

impl<'ra> ToNameBinding<'ra> for Interned<'ra, NameBindingData<'ra>>

Source§

fn to_name_binding( self, _: &'ra ResolverArenas<'ra>, ) -> Interned<'ra, NameBindingData<'ra>>

Source§

impl<'ra, Id: Into<DefId>> ToNameBinding<'ra> for (Res<NodeId>, Visibility<Id>, Span, LocalExpnId)

Source§

fn to_name_binding( self, arenas: &'ra ResolverArenas<'ra>, ) -> Interned<'ra, NameBindingData<'ra>>

Source§

impl<'ra, Id: Into<DefId>> ToNameBinding<'ra> for (Module<'ra>, Visibility<Id>, Span, LocalExpnId)

Source§

fn to_name_binding( self, arenas: &'ra ResolverArenas<'ra>, ) -> Interned<'ra, NameBindingData<'ra>>

Implementors§