[−][src]Struct rustc_resolve::NameBinding

pub struct NameBinding<'a> {
    kind: NameBindingKind<'a>,
    ambiguity: Option<(&'a NameBinding<'a>, AmbiguityKind)>,
    expansion: ExpnId,
    span: Span,
    vis: Visibility,
}

Records a possibly-private value, type, or module definition.

Fields

kind: NameBindingKind<'a>ambiguity: Option<(&'a NameBinding<'a>, AmbiguityKind)>expansion: ExpnIdspan: Spanvis: Visibility

Implementations

impl<'a> NameBinding<'a>[src]

pub(crate) fn module(&self) -> Option<&'a ModuleData<'a>>[src]

pub(crate) fn res(&self) -> Res<NodeId>[src]

pub(crate) fn is_ambiguity(&self) -> bool[src]

pub(crate) fn is_possibly_imported_variant(&self) -> bool[src]

pub(crate) fn pseudo_vis(&self) -> Visibility[src]

pub(crate) fn is_variant(&self) -> bool[src]

pub(crate) fn is_extern_crate(&self) -> bool[src]

pub(crate) fn is_import(&self) -> bool[src]

pub(crate) fn is_glob_import(&self) -> bool[src]

pub(crate) fn is_importable(&self) -> bool[src]

pub(crate) fn is_macro_def(&self) -> bool[src]

pub(crate) fn macro_kind(&self) -> Option<MacroKind>[src]

pub(crate) fn may_appear_after(
    &self,
    invoc_parent_expansion: ExpnId,
    binding: &NameBinding<'_>
) -> bool
[src]

Trait Implementations

impl<'a> Clone for NameBinding<'a>[src]

impl<'a> Debug for NameBinding<'a>[src]

impl<'a> ToNameBinding<'a> for &'a NameBinding<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.