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

Function lean_ctor_get_float32

src/constructor.rs:105–108  ·  view source on GitHub ↗
(o: b_lean_obj_arg, offset: c_uint)

Source from the content-addressed store, hash-verified

103
104#[inline(always)]
105pub unsafe fn lean_ctor_get_float32(o: b_lean_obj_arg, offset: c_uint) -> f32 {
106 debug_assert!(offset >= lean_ctor_num_objs(o) * core::mem::size_of::<*const ()>() as c_uint);
107 ((lean_ctor_obj_cptr(o) as *const u8).add(offset as usize) as *const f32).read()
108}
109
110#[inline(always)]
111pub unsafe fn lean_ctor_set_usize(o: b_lean_obj_arg, i: c_uint, v: usize) {

Callers 1

lean_unbox_float32Function · 0.85

Calls 1

lean_ctor_obj_cptrFunction · 0.85

Tested by

no test coverage detected