Struct rustc_resolve::NameBinding [−][src]
pub struct NameBinding<'a> {
kind: NameBindingKind<'a>,
ambiguity: Option<(&'a NameBinding<'a>, AmbiguityKind)>,
expansion: LocalExpnId,
span: Span,
vis: Visibility,
}
Expand description
Records a possibly-private value, type, or module definition.
Fields
kind: NameBindingKind<'a>
ambiguity: Option<(&'a NameBinding<'a>, AmbiguityKind)>
expansion: LocalExpnId
span: Span
vis: Visibility
Implementations
pub(crate) fn may_appear_after(
&self,
invoc_parent_expansion: LocalExpnId,
binding: &NameBinding<'_>
) -> bool
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for NameBinding<'a>
impl<'a> !Send for NameBinding<'a>
impl<'a> !Sync for NameBinding<'a>
impl<'a> Unpin for NameBinding<'a>
impl<'a> !UnwindSafe for NameBinding<'a>
Blanket Implementations
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: 72 bytes