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

Function rs_roundtrip_ix_syntax

crates/ffi/src/ix/data.rs:424–430  ·  view source on GitHub ↗
(
  syn_ptr: LeanIxSyntax<LeanBorrowed<'_>>,
)

Source from the content-addressed store, hash-verified

422#[cfg(feature = "test-ffi")]
423#[unsafe(no_mangle)]
424pub extern "C" fn rs_roundtrip_ix_syntax(
425 syn_ptr: LeanIxSyntax<LeanBorrowed<'_>>,
426) -> LeanIxSyntax<LeanOwned> {
427 let syn = syn_ptr.decode();
428 let mut cache = LeanBuildCache::new();
429 LeanIxSyntax::build(&mut cache, &syn)
430}
431
432/// Round-trip an Ix.DataValue: decode from Lean, re-encode.
433#[cfg(feature = "test-ffi")]

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected