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

Function rs_roundtrip_ix_source_info

crates/ffi/src/ix/data.rs:403–408  ·  view source on GitHub ↗
(
  si_ptr: LeanIxSourceInfo<LeanBorrowed<'_>>,
)

Source from the content-addressed store, hash-verified

401#[cfg(feature = "test-ffi")]
402#[unsafe(no_mangle)]
403pub extern "C" fn rs_roundtrip_ix_source_info(
404 si_ptr: LeanIxSourceInfo<LeanBorrowed<'_>>,
405) -> LeanIxSourceInfo<LeanOwned> {
406 let si = si_ptr.decode();
407 LeanIxSourceInfo::build(&si)
408}
409
410/// Round-trip an Ix.SyntaxPreresolved: decode from Lean, re-encode.
411#[cfg(feature = "test-ffi")]

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected