pub const fn lean_box(n: usize) -> *mut lean_objectExpand description
Box a usize into a lean_object
ยงExamples
for i in [0, 5, 658948, 1 << (usize::BITS - 2)] {
assert_eq!(lean_unbox(lean_box(i)), i);
}pub const fn lean_box(n: usize) -> *mut lean_objectBox a usize into a lean_object
for i in [0, 5, 658948, 1 << (usize::BITS - 2)] {
assert_eq!(lean_unbox(lean_box(i)), i);
}