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

Function lean_array_set_core

src/array/low_level.rs:56–62  ·  view source on GitHub ↗
(o: u_lean_obj_arg, i: usize, v: lean_obj_arg)

Source from the content-addressed store, hash-verified

54
55#[inline(always)]
56pub unsafe fn lean_array_set_core(o: u_lean_obj_arg, i: usize, v: lean_obj_arg) {
57 debug_assert!(!lean_has_rc(o) || lean_is_exclusive(o));
58 debug_assert!(i < lean_array_size(o));
59 (raw_field!(lean_to_array(o), lean_array_object, m_data) as *mut *mut lean_object)
60 .add(i)
61 .write(v)
62}
63
64extern "C" {
65 pub fn lean_array_mk(l: lean_obj_arg) -> *mut lean_object;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected