[][src]Struct ra_ap_hir::ExprScopes

pub struct ExprScopes { /* fields omitted */ }

Implementations

impl ExprScopes[src]

pub fn entries(&self, scope: Idx<ScopeData>) -> &[ScopeEntry]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn scope_chain(
    &self,
    scope: Option<Idx<ScopeData>>
) -> impl Iterator<Item = Idx<ScopeData>>
[src]

pub fn resolve_name_in_scope(
    &self,
    scope: Idx<ScopeData>,
    name: &Name
) -> Option<&ScopeEntry>
[src]

pub fn scope_for(&self, expr: Idx<Expr>) -> Option<Idx<ScopeData>>[src]

pub fn scope_by_expr(
    &self
) -> &HashMap<Idx<Expr>, Idx<ScopeData>, BuildHasherDefault<FxHasher>>
[src]

Trait Implementations

impl Debug for ExprScopes[src]

impl Eq for ExprScopes[src]

impl PartialEq<ExprScopes> for ExprScopes[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Cast for T

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.