Decode Array UInt64 from Lean.
(obj: LeanArray<LeanBorrowed<'_>>)
| 8 | |
| 9 | /// Decode Array UInt64 from Lean. |
| 10 | fn decode_u64_array(obj: LeanArray<LeanBorrowed<'_>>) -> Vec<u64> { |
| 11 | obj |
| 12 | .iter() |
| 13 | .map(|elem| { |
| 14 | if elem.is_scalar() { |
| 15 | elem.unbox_usize() as u64 |
| 16 | } else { |
| 17 | elem.unbox_u64() |
| 18 | } |
| 19 | }) |
| 20 | .collect() |
| 21 | } |
| 22 | |
| 23 | impl LeanIxonExpr<LeanOwned> { |
| 24 | /// Build Ixon.Expr (12 constructors and wire categories). |