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

Function lean_array_get_core

src/array/low_level.rs:50–53  ·  view source on GitHub ↗
(o: b_lean_obj_arg, i: usize)

Source from the content-addressed store, hash-verified

48
49#[inline(always)]
50pub unsafe fn lean_array_get_core(o: b_lean_obj_arg, i: usize) -> b_lean_obj_res {
51 debug_assert!(i < lean_array_size(o));
52 *(raw_field!(lean_to_array(o), lean_array_object, m_data) as *mut *mut lean_object).add(i)
53}
54
55#[inline(always)]
56pub unsafe fn lean_array_set_core(o: u_lean_obj_arg, i: usize, v: lean_obj_arg) {

Callers 3

lean_array_ugetFunction · 0.85
lean_array_fget_borrowedFunction · 0.85
lean_array_get_borrowedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected