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

Function env_usize

crates/ffi/src/kernel.rs:2108–2113  ·  view source on GitHub ↗
(var: &str, default: usize)

Source from the content-addressed store, hash-verified

2106 Ok(env) => env,
2107 Err(e) => {
2108 return LeanIOResult::error_string(&format!(
2109 "rs_env_extract: failed to deserialize {path}: {e}"
2110 ));
2111 },
2112 };
2113 // Resolve displayed names → addresses through the full env's `named`
2114 // metadata (the anon view discards it). Keys and requests both go
2115 // through `normalize_displayed_name` (Lean `«»`-escaped ↔ Rust bare).
2116 let by_name: FxHashMap<String, Address> = full

Callers 3

kernel_check_clear_everyFunction · 0.85
newMethod · 0.85

Calls 1

varFunction · 0.50

Tested by

no test coverage detected