Struct ra_ap_hir::ExprScopes [−][src]
pub struct ExprScopes { /* fields omitted */ }
Implementations
impl ExprScopes
[src]
impl ExprScopes
[src]pub fn entries(&self, scope: Idx<ScopeData>) -> &[ScopeEntry]ⓘ
[src]
pub fn block(&self, scope: Idx<ScopeData>) -> Option<BlockId>
[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]
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]
&self,
scope: Option<Idx<ScopeData>>
) -> impl Iterator<Item = Idx<ScopeData>>
pub fn resolve_name_in_scope(
&self,
scope: Idx<ScopeData>,
name: &Name
) -> Option<&ScopeEntry>
[src]
&self,
scope: Idx<ScopeData>,
name: &Name
) -> Option<&ScopeEntry>
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]
&self
) -> &HashMap<Idx<Expr>, Idx<ScopeData>, BuildHasherDefault<FxHasher>>
Trait Implementations
impl Debug for ExprScopes
[src]
impl Debug for ExprScopes
[src]impl PartialEq<ExprScopes> for ExprScopes
[src]
impl PartialEq<ExprScopes> for ExprScopes
[src]pub fn eq(&self, other: &ExprScopes) -> bool
[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]
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
impl RefUnwindSafe for ExprScopes
impl Send for ExprScopes
impl Sync for ExprScopes
impl Unpin for ExprScopes
impl UnwindSafe for ExprScopes
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
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]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[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]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Any for T where
T: Any,
T: Any,