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

Function rs_decompile_env

crates/ffi/src/compile.rs:1524–1550  ·  view source on GitHub ↗
(
  raw_env_obj: LeanIxonRawEnv<LeanOwned>,
)

Source from the content-addressed store, hash-verified

1522 },
1523 5 => {
1524 CompileError::Serialize(LeanIxSerializeError(self.get_obj(0)).decode())
1525 },
1526 tag => unreachable!("Invalid CompileError tag: {tag}"),
1527 }
1528 }
1529}
1530
1531/// FFI: Round-trip a DecompileError: Lean → Rust → Lean.
1532#[cfg(feature = "test-ffi")]
1533#[unsafe(no_mangle)]
1534pub extern "C" fn rs_roundtrip_decompile_error(
1535 obj: LeanIxDecompileError<LeanBorrowed<'_>>,
1536) -> LeanIxDecompileError<LeanOwned> {
1537 let err = obj.decode();
1538 LeanIxDecompileError::build(&err)
1539}
1540
1541/// FFI: Round-trip a CompileError: Lean → Rust → Lean.
1542#[cfg(feature = "test-ffi")]
1543#[unsafe(no_mangle)]
1544pub extern "C" fn rs_roundtrip_compile_error(
1545 obj: LeanIxCompileError<LeanBorrowed<'_>>,
1546) -> LeanIxCompileError<LeanOwned> {
1547 let err = obj.decode();
1548 LeanIxCompileError::build(&err)
1549}
1550
1551/// FFI: Round-trip a SerializeError: Lean → Rust → Lean.
1552#[cfg(feature = "test-ffi")]
1553#[unsafe(no_mangle)]

Callers

nothing calls this directly

Calls 5

decoded_to_ixon_envFunction · 0.85
decompile_envFunction · 0.85
decodeMethod · 0.45
lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected