( sub_ptr: LeanIxSubstring<LeanBorrowed<'_>>, )
| 391 | #[cfg(feature = "test-ffi")] |
| 392 | #[unsafe(no_mangle)] |
| 393 | pub 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")] |