Skip to main content

lean_unbox

Function lean_unbox 

Source
pub unsafe fn lean_unbox(o: *mut lean_object) -> usize
Expand description

Unbox a scalar Lean object (lean.h:314).

ยงSafety

o must be scalar-tagged (low bit set). Otherwise the returned usize is the raw pointer right-shifted by one and meaningless.