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

Function build_result_array

crates/ffi/src/kernel.rs:2977–2983  ·  view source on GitHub ↗

Build an `IO (Array (Option CheckError))` from Rust results. The Lean caller pairs each slot with `names[i]` (the input array) for display, so there's no name in the returned tuple.

(results: &[CheckRes])

Source from the content-addressed store, hash-verified

2975 // Terminal width is only needed for ephemeral clearing in quiet mode. In
2976 // verbose mode we never rewrite, so the value is ignored.
2977 let mut progress = Progress::new(quiet);
2978 let mut kenv = KEnv::<M>::new();
2979 let clear_every = kernel_check_clear_every();
2980 let mut checks_since_clear = clear_every;
2981
2982 for (work_idx, item) in work.iter().enumerate() {
2983 if checks_since_clear >= clear_every {
2984 kenv.clear_releasing_memory();
2985 checks_since_clear = 0;
2986 }

Callers 3

rs_kernel_check_constsFunction · 0.85
rs_kernel_check_ixonFunction · 0.85
build_uniform_errorFunction · 0.85

Calls 3

build_option_resultFunction · 0.85
lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected