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

Function rs_roundtrip_ix_substring

crates/ffi/src/ix/data.rs:393–398  ·  view source on GitHub ↗
(
  sub_ptr: LeanIxSubstring<LeanBorrowed<'_>>,
)

Source from the content-addressed store, hash-verified

391#[cfg(feature = "test-ffi")]
392#[unsafe(no_mangle)]
393pub extern "C" fn rs_roundtrip_ix_substring(
394 sub_ptr: LeanIxSubstring<LeanBorrowed<'_>>,
395) -> LeanIxSubstring<LeanOwned> {
396 let sub = sub_ptr.decode();
397 LeanIxSubstring::build(&sub)
398}
399
400/// Round-trip an Ix.SourceInfo: decode from Lean, re-encode.
401#[cfg(feature = "test-ffi")]

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected