pub(crate) enum LexicalScopeBinding<'a> {
Item(&'a NameBinding<'a>),
Res(Res<NodeId>),
}
Expand description
An intermediate resolution result.
This refers to the thing referred by a name. The difference between Res
and Item
is that
items are visible in their whole block, while Res
es only from the place they are defined
forward.
Variants§
Item(&'a NameBinding<'a>)
Res(Res<NodeId>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LexicalScopeBinding<'a>
impl<'a> !Send for LexicalScopeBinding<'a>
impl<'a> !Sync for LexicalScopeBinding<'a>
impl<'a> Unpin for LexicalScopeBinding<'a>
impl<'a> !UnwindSafe for LexicalScopeBinding<'a>
Blanket Implementations§
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: 16 bytes
Size for each variant:
Item
: 12 bytesRes
: 12 bytes