pub fn allocate_tuple(hp: &mut Heap, size: Word)
  -> Result<rtuple::PtrMut, HeapError>
{
  match hp.heap_allocate(rtuple::storage_size(size), false) {
    Ok(p) => unsafe { Ok(rtuple::PtrMut::create_at(p, size)) },
    Err(e) => Err(e) // repack inner Err into outer Err
  }
}
/// Allocate `size+1` cells and form a tuple in memory, return the pointer.
Allocate `size+1` cells and form a tuple in memory, return the pointer.
Allocate ` size + 1 ` cells and form a tuple in memory return the pointer .
pub fn allocate_tuple(hp: &mut Heap, size: Word)
  -> Result<rtuple::PtrMut, HeapError>
{
  match hp.heap_allocate(rtuple::storage_size(size), false) {
    Ok(p) => unsafe { Ok(rtuple::PtrMut::create_at(p, size)) },
    Err(e) => Err(e) // repack inner Err into outer Err
  }
}
pub fn allocate_tuple ( hp : & mut Heap , size : Word ) -> Result < rtuple :: PtrMut , HeapError > { match hp . heap_allocate ( rtuple :: storage_size ( size ) , false ) { Ok ( p ) => unsafe { Ok ( rtuple :: PtrMut :: create_at ( p , size ) ) } , Err ( e ) => Err ( e ) // repack inner Err into outer Err } }
Allocate `size+1` cells and form a tuple in memory, return the pointer.
Allocate ` size + 1 ` cells and form a tuple in memory return the pointer .
hp
&mut Heap
size
Word