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

Method as_array

crates/ffi/src/ix/env.rs:177–179  ·  view source on GitHub ↗

RawEnvironment is a single-field struct, unboxed to just Array by Lean.

(&self)

Source from the content-addressed store, hash-verified

175impl<R: LeanRef> LeanIxRawEnvironment<R> {
176 /// RawEnvironment is a single-field struct, unboxed to just Array by Lean.
177 fn as_array(&self) -> LeanArray<LeanBorrowed<'_>> {
178 unsafe { LeanBorrowed::from_raw(self.as_raw()) }.as_array()
179 }
180
181 /// Decode Ix.RawEnvironment from Lean object into HashMap.
182 /// RawEnvironment = { consts : Array (Name × ConstantInfo) }

Callers 15

decode_syntaxFunction · 0.80
decodeMethod · 0.80
decodeMethod · 0.80
decode_hashmapFunction · 0.80
decodeMethod · 0.80
decode_to_vecMethod · 0.80
decodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected