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

Function decode_substring

crates/ffi/src/lean_env.rs:668–674  ·  view source on GitHub ↗
(obj: LeanBorrowed<'_>)

Source from the content-addressed store, hash-verified

666 1 => Name::str(pre, pos.as_string().to_string()),
667 2 => Name::num(pre, LeanNat::to_nat(&pos)),
668 tag => unreachable!("Invalid Lean.Name tag: {tag}"),
669 }
670 };
671
672 // Insert and return (entry API handles races gracefully)
673 global.names.entry(ptr).or_insert(name).clone()
674}
675
676/// Decode an `@& Array Lean.Name` FFI argument into a `Vec<Name>`.
677///

Callers 2

decode_source_infoFunction · 0.85
decode_syntaxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected