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

        *self.head.borrow_mut() =
            chunk((new_min_chunk_size + 1).next_power_of_two(), false);

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