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

Method decode

crates/ffi/src/lean_ixon/env.rs:56–62  ·  view source on GitHub ↗

Decode Ixon.RawConst from Lean pointer.

(&self)

Source from the content-addressed store, hash-verified

54
55impl<R: LeanRef> LeanIxonRawConst<R> {
56 /// Decode Ixon.RawConst from Lean pointer.
57 pub fn decode(&self) -> DecodedRawConst {
58 let ctor = self.as_ctor();
59 DecodedRawConst {
60 addr: LeanIxAddress::from_borrowed(ctor.get(0).as_byte_array()).decode(),
61 constant: LeanIxonConstant::new(ctor.get(1).to_owned_ref()).decode(),
62 }
63 }
64}
65

Callers 8

rs_ser_envFunction · 0.45
rs_env_merkle_rootFunction · 0.45
rs_expr_hash_matchesFunction · 0.45
rs_eq_univ_serializationFunction · 0.45
rs_eq_expr_serializationFunction · 0.45
rs_eq_env_serializationFunction · 0.45

Calls 3

as_bytesMethod · 0.80
as_arrayMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected