Decode Ixon.RawConst from Lean pointer.
(&self)
| 54 | |
| 55 | impl<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 |
no test coverage detected