MCPcopy Create free account
hub / github.com/digama0/lean-sys / lean_array_uset

Function lean_array_uset

src/array/high_level.rs:101–107  ·  view source on GitHub ↗
(a: lean_obj_arg, i: usize, v: lean_obj_arg)

Source from the content-addressed store, hash-verified

99
100#[inline]
101pub unsafe fn lean_array_uset(a: lean_obj_arg, i: usize, v: lean_obj_arg) -> *mut lean_object {
102 let r = lean_ensure_exclusive_array(a);
103 let it = lean_array_cptr(r).add(i);
104 lean_dec(*it);
105 *it = v;
106 r
107}
108
109#[inline]
110pub unsafe fn lean_array_fset(

Callers 2

lean_array_fsetFunction · 0.85
lean_array_setFunction · 0.85

Calls 3

lean_array_cptrFunction · 0.85
lean_decFunction · 0.85

Tested by

no test coverage detected