MCPcopy Create free account
hub / github.com/argumentcomputer/ix / find

Method find

crates/kernel/src/lctx.rs:103–105  ·  view source on GitHub ↗

Look up a declaration by its [`FVarId`]. Returns `None` if the fvar is not bound in this context.

(&self, id: FVarId)

Source from the content-addressed store, hash-verified

101 /// Look up a declaration by its [`FVarId`]. Returns `None` if the fvar is
102 /// not bound in this context.
103 pub fn find(&self, id: FVarId) -> Option<&LocalDecl<M>> {
104 self.index.get(&id).map(|&i| &self.decls[i].1)
105 }
106
107 /// Push a declaration. The caller is responsible for ensuring `id` is
108 /// fresh (typically from [`NameGenerator::fresh`]).

Callers 15

constant_inputsFunction · 0.45
append_proofFunction · 0.45
run_constantFunction · 0.45
get_index_ofMethod · 0.45
decompile_exprFunction · 0.45
build_rec_rulesFunction · 0.45
compute_aux_permFunction · 0.45
handle_substcore_stepFunction · 0.45
rs_compile_validate_auxFunction · 0.45
analyze_const_sizeFunction · 0.45
wrap_bindersMethod · 0.45
check_eq_typeMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 2

test_analyze_simpleFunction · 0.36
test_topological_sortFunction · 0.36