Function
rs_refcount_owned_array_drop
(
arr: LeanArray<LeanOwned>,
)
Source from the content-addressed store, hash-verified
| 104 | /// The owned array is dropped at the end → lean_dec_ref on each element. |
| 105 | #[unsafe(no_mangle)] |
| 106 | pub extern "C" fn rs_refcount_owned_array_drop( |
| 107 | arr: LeanArray<LeanOwned>, |
| 108 | ) -> LeanOwned { |
| 109 | let count = arr.len(); |
| 110 | for i in 0..count { |
| 111 | let _ = LeanIxName(arr.get(i)).decode(); |
| 112 | } |
| 113 | LeanNat::from_nat(&Nat::from(count as u64)).into() |
| 114 | } |
| 115 | |
| 116 | /// Take an owned List of Exprs, consume and count. |
| 117 | #[unsafe(no_mangle)] |
Callers
nothing calls this directly
Tested by
no test coverage detected