pub(crate) enum LexicalScopeBinding<'a> {
Item(Interned<'a, NameBindingData<'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§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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