/// Create a |State| object wrapping the given Heap. This will cause the
/// heap to be initialized with a header.
Create a |State| object wrapping the given Heap. This will cause the
heap to be initialized with a header.
Create a |State| object wrapping the given Heap . This will cause the heap to be initialized with a header .
pub fn create(mut heap: Heap) -> Result<State, Error> {
        let mut block = heap.allocate_block(16)?;
        block.become_header()?;
        Ok(State { heap: heap, header: block })
    }
pub fn create ( mut heap : Heap ) -> Result < State , Error > { let mut block = heap . allocate_block ( 16 ) ? ; block . become_header ( ) ? ; Ok ( State { heap : heap , header : block } ) }
Create a |State| object wrapping the given Heap.
Create a |State| object wrapping the given Heap .
heap
Heap