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

Function lean_mk_empty_array_with_capacity

src/array/high_level.rs:22–27  ·  view source on GitHub ↗
(capacity: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

20
21#[inline(always)]
22pub unsafe fn lean_mk_empty_array_with_capacity(capacity: b_lean_obj_arg) -> *mut lean_object {
23 if !lean_is_scalar(capacity) {
24 lean_internal_panic_out_of_memory()
25 }
26 lean_alloc_array(0, lean_unbox(capacity))
27}
28
29#[inline]
30pub unsafe fn lean_array_uget(a: b_lean_obj_arg, i: usize) -> lean_obj_res {

Callers

nothing calls this directly

Calls 3

lean_is_scalarFunction · 0.85
lean_alloc_arrayFunction · 0.85
lean_unboxFunction · 0.85

Tested by

no test coverage detected