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

Function lean_ctor_get_float

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

Source from the content-addressed store, hash-verified

97
98#[inline(always)]
99pub unsafe fn lean_ctor_get_float(o: b_lean_obj_arg, offset: c_uint) -> f64 {
100 debug_assert!(offset >= lean_ctor_num_objs(o) * core::mem::size_of::<*const ()>() as c_uint);
101 ((lean_ctor_obj_cptr(o) as *const u8).add(offset as usize) as *const f64).read()
102}
103
104#[inline(always)]
105pub unsafe fn lean_ctor_get_float32(o: b_lean_obj_arg, offset: c_uint) -> f32 {

Callers 1

lean_unbox_floatFunction · 0.85

Calls 1

lean_ctor_obj_cptrFunction · 0.85

Tested by

no test coverage detected