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

Method push

crates/kernel/src/lctx.rs:109–113  ·  view source on GitHub ↗

Push a declaration. The caller is responsible for ensuring `id` is fresh (typically from [`NameGenerator::fresh`]).

(&mut self, id: FVarId, decl: LocalDecl<M>)

Source from the content-addressed store, hash-verified

107 /// Push a declaration. The caller is responsible for ensuring `id` is
108 /// fresh (typically from [`NameGenerator::fresh`]).
109 pub fn push(&mut self, id: FVarId, decl: LocalDecl<M>) {
110 let pos = self.decls.len();
111 self.decls.push((id, decl));
112 self.index.insert(id, pos);
113 }
114
115 /// Truncate the context to the given length, dropping any declarations
116 /// pushed since. The dropped fvars become unresolvable via [`Self::find`].

Callers 15

mainFunction · 0.80
plan_shardsFunction · 0.80
plan_shards_by_costFunction · 0.80
load_proof_indexFunction · 0.80
leaf_assumptionsFunction · 0.80
distinct_vksFunction · 0.80
find_missing_depsFunction · 0.80
tree_partitionFunction · 0.80
group_work_by_manifestFunction · 0.80
run_shard_planFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 2

lenMethod · 0.45
insertMethod · 0.45