fn alloc_copy_grow(&self, n_bytes: usize, align: usize) -> *const u8 {
        // Allocate a new chunk.
        let new_min_chunk_size = cmp::max(n_bytes, self.chunk_size());
        self.chunks.borrow_mut().push(self.copy_head.borrow().clone());

        *self.copy_head.borrow_mut() =
            chunk((new_min_chunk_size + 1).next_power_of_two(), true);

        return self.alloc_copy_inner(n_bytes, align);
    }
// Functions for the POD part of the arena
Functions for the POD part of the arena
Functions for the POD part of the arena
fn alloc_copy_grow(&self, n_bytes: usize, align: usize) -> *const u8 {
        // Allocate a new chunk.
        let new_min_chunk_size = cmp::max(n_bytes, self.chunk_size());
        self.chunks.borrow_mut().push(self.copy_head.borrow().clone());
        *self.copy_head.borrow_mut() =
            chunk((new_min_chunk_size + 1).next_power_of_two(), true);
        return self.alloc_copy_inner(n_bytes, align);
    }
fn alloc_copy_grow ( & self , n_bytes : usize , align : usize ) -> * const u8 { // Allocate a new chunk. let new_min_chunk_size = cmp :: max ( n_bytes , self . chunk_size ( ) ) ; self . chunks . borrow_mut ( ) . push ( self . copy_head . borrow ( ) . clone ( ) ) ; * self . copy_head . borrow_mut ( ) = chunk ( ( new_min_chunk_size + 1 ) . next_power_of_two ( ) , true ) ; return self . alloc_copy_inner ( n_bytes , align ) ; }
Functions for the POD part of the arena
Functions for the POD part of the arena
&self
n_bytes
usize
align
usize