// See the comments of the corresponding method in `PageAllocator`.
See the comments of the corresponding method in `PageAllocator`.
See the comments of the corresponding method in ` PageAllocator ` .
fn allocate(
        _page_allocator: &Arc<HeapBasedPageAllocator>,
        pages: &[(PageIndex, &PageBytes)],
    ) -> Vec<(PageIndex, Page<Self::PageInner>)> {
        pages
            .iter()
            .map(|(page_index, contents)| {
                (*page_index, Page(Arc::new(HeapBasedPage::new(*contents))))
            })
            .collect()
    }
fn allocate ( _page_allocator : & Arc < HeapBasedPageAllocator > , pages : & [ ( PageIndex , & PageBytes ) ] , ) -> Vec < ( PageIndex , Page < Self :: PageInner > ) > { pages . iter ( ) . map ( | ( page_index , contents ) | { ( * page_index , Page ( Arc :: new ( HeapBasedPage :: new ( * contents ) ) ) ) } ) . collect ( ) }
See the comments of the corresponding method in `PageAllocator`.
See the comments of the corresponding method in ` PageAllocator ` .
_page_allocator
&Arc<HeapBasedPageAllocator>
pages
&[(PageIndex, &PageBytes)]