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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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: 24 bytes
Size for each variant:
Item
: 16 bytesRes
: 24 bytes