Type Alias rustc_resolve::NameBinding
source · pub(crate) type NameBinding<'a> = Interned<'a, NameBindingData<'a>>;
Expand description
All name bindings are unique and allocated on a same arena, so we can use referential equality to compare them.
Aliased Type§
struct NameBinding<'a>(pub &'a NameBindingData<'a>, pub PrivateZst);
Fields§
§0: &'a NameBindingData<'a>
§1: PrivateZst
Trait Implementations§
source§impl<'a> ToNameBinding<'a> for Interned<'a, NameBindingData<'a>>
impl<'a> ToNameBinding<'a> for Interned<'a, NameBindingData<'a>>
fn to_name_binding( self, _: &'a ResolverArenas<'a> ) -> Interned<'a, NameBindingData<'a>>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes