SemanticExprLookup

Trait SemanticExprLookup 

Source
pub trait SemanticExprLookup<'db>: Database {
    // Provided methods
    fn lookup_expr_by_ptr(
        &'db self,
        function_id: FunctionWithBodyId<'db>,
        ptr: ExprPtr<'db>,
    ) -> Maybe<ExprId> { ... }
    fn lookup_pattern_by_ptr(
        &'db self,
        function_id: FunctionWithBodyId<'db>,
        ptr: PatternPtr<'db>,
    ) -> Maybe<PatternId> { ... }
}

Provided Methods§

Source

fn lookup_expr_by_ptr( &'db self, function_id: FunctionWithBodyId<'db>, ptr: ExprPtr<'db>, ) -> Maybe<ExprId>

Source

fn lookup_pattern_by_ptr( &'db self, function_id: FunctionWithBodyId<'db>, ptr: PatternPtr<'db>, ) -> Maybe<PatternId>

Implementors§

Source§

impl<'db, T: Database + ?Sized> SemanticExprLookup<'db> for T