Struct ra_ap_hir::ExprScopes[][src]

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 block(&self, scope: Idx<ScopeData>) -> Option<BlockId>[src]

If scope refers to a block expression scope, returns the corresponding BlockId.

pub fn label(&self, scope: Idx<ScopeData>) -> Option<(Idx<Label>, Name)>[src]

If scope refers to a labeled expression scope, returns the corresponding Label.

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]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl PartialEq<ExprScopes> for ExprScopes[src]

pub fn eq(&self, other: &ExprScopes) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &ExprScopes) -> bool[src]

This method tests for !=.

impl Eq for ExprScopes[src]

impl StructuralEq for ExprScopes[src]

impl StructuralPartialEq for ExprScopes[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Cast for T

fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
    Self: CastTo<U>,
    U: HasInterner, 

Cast a value to type U using CastTo.

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

pub fn equivalent(&self, key: &K) -> bool[src]

Compare self to key and return true if they are equal.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> Any for T where
    T: Any