[][src]Struct ra_ap_hir_def::item_scope::ItemScope

pub struct ItemScope { /* fields omitted */ }

Implementations

impl ItemScope[src]

Legacy macros can only be accessed through special methods like get_legacy_macros. Other methods will only resolve values, types and module scoped macros only.

pub fn entries<'a>(&'a self) -> impl Iterator<Item = (&'a Name, PerNs)> + 'a[src]

pub fn declarations(&self) -> impl Iterator<Item = ModuleDefId> + '_[src]

pub fn impls(&self) -> impl Iterator<Item = ImplId> + ExactSizeIterator + '_[src]

pub fn values(
    &self
) -> impl Iterator<Item = (ModuleDefId, Visibility)> + ExactSizeIterator + '_
[src]

pub fn visibility_of(&self, def: ModuleDefId) -> Option<Visibility>[src]

Trait Implementations

impl ChildBySource for ItemScope[src]

impl Debug for ItemScope[src]

impl Default for ItemScope[src]

impl Eq for ItemScope[src]

impl PartialEq<ItemScope> for ItemScope[src]

impl StructuralEq for ItemScope[src]

impl StructuralPartialEq for ItemScope[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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.