MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / call

Method call

expander_compiler/src/hints/registry.rs:40–47  ·  view source on GitHub ↗
(&self, id: usize, args: &[F], num_outputs: usize)

Source from the content-addressed store, hash-verified

38 self.hints.insert(id, hint);
39 }
40 pub fn call(&self, id: usize, args: &[F], num_outputs: usize) -> Result<Vec<F>, Error> {
41 if let Some(hint) = self.hints.get(&id) {
42 let mut outputs = vec![F::zero(); num_outputs];
43 hint(args, &mut outputs).map(|_| outputs)
44 } else {
45 panic!("Hint with id {id} not found");
46 }
47 }
48}
49
50#[derive(Default)]

Callers 2

safe_implFunction · 0.80
new_hintMethod · 0.80

Calls 4

stub_implFunction · 0.85
to_vecMethod · 0.80
getMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected