Enum rustc_resolve::NameBindingKind
source · pub(crate) enum NameBindingKind<'a> {
Res(Res<NodeId>),
Module(Module<'a>),
Import {
binding: Interned<'a, NameBindingData<'a>>,
import: Interned<'a, ImportData<'a>>,
used: Cell<bool>,
},
}
Variants§
Res(Res<NodeId>)
Module(Module<'a>)
Import
Implementations§
Trait Implementations§
source§impl<'a> Clone for NameBindingKind<'a>
impl<'a> Clone for NameBindingKind<'a>
source§fn clone(&self) -> NameBindingKind<'a>
fn clone(&self) -> NameBindingKind<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for NameBindingKind<'a>
impl<'a> !Send for NameBindingKind<'a>
impl<'a> !Sync for NameBindingKind<'a>
impl<'a> Unpin for NameBindingKind<'a>
impl<'a> !UnwindSafe for NameBindingKind<'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: 24 bytes
Size for each variant:
Res
: 15 bytesModule
: 15 bytesImport
: 23 bytes