[−][src]Struct rustc_resolve::NameBinding
Records a possibly-private value, type, or module definition.
Fields
kind: NameBindingKind<'a>ambiguity: Option<(&'a NameBinding<'a>, AmbiguityKind)>expansion: ExpnIdspan: Spanvis: VisibilityImplementations
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]
&self,
invoc_parent_expansion: ExpnId,
binding: &NameBinding<'_>
) -> bool
Trait Implementations
impl<'a> Clone for NameBinding<'a>[src]
pub fn clone(&self) -> NameBinding<'a>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Debug for NameBinding<'a>[src]
impl<'a> ToNameBinding<'a> for &'a NameBinding<'a>[src]
pub fn to_name_binding(self, _: &'a ResolverArenas<'a>) -> &'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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,