fn deserialize_page_delta(
        _page_allocator: &Arc<HeapBasedPageAllocator>,
        page_delta: PageDeltaSerialization,
    ) -> Vec<(PageIndex, Page<Self::PageInner>)> {
        // Allocate all pages on the Rust heap.
        match page_delta {
            PageDeltaSerialization::Heap(page_delta) => page_delta
                .into_iter()
                .map(|page| (page.index, Page(Arc::new(HeapBasedPage(page.bytes)))))
                .collect(),
            PageDeltaSerialization::Empty | PageDeltaSerialization::Mmap { .. } => {
                // This is really unreachable. See `serialize_page_delta()`.
                unreachable!("Unexpected serialization of page-delta in HeapBasedPageAllocator.");
            }
        }
    }
// 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 deserialize_page_delta(
        _page_allocator: &Arc<HeapBasedPageAllocator>,
        page_delta: PageDeltaSerialization,
    ) -> Vec<(PageIndex, Page<Self::PageInner>)> {
        // Allocate all pages on the Rust heap.
        match page_delta {
            PageDeltaSerialization::Heap(page_delta) => page_delta
                .into_iter()
                .map(|page| (page.index, Page(Arc::new(HeapBasedPage(page.bytes)))))
                .collect(),
            PageDeltaSerialization::Empty | PageDeltaSerialization::Mmap { .. } => {
                // This is really unreachable. See `serialize_page_delta()`.
                unreachable!("Unexpected serialization of page-delta in HeapBasedPageAllocator.");
            }
        }
    }
fn deserialize_page_delta ( _page_allocator : & Arc < HeapBasedPageAllocator > , page_delta : PageDeltaSerialization , ) -> Vec < ( PageIndex , Page < Self :: PageInner > ) > { // Allocate all pages on the Rust heap. match page_delta { PageDeltaSerialization :: Heap ( page_delta ) => page_delta . into_iter ( ) . map ( | page | ( page . index , Page ( Arc :: new ( HeapBasedPage ( page . bytes ) ) ) ) ) . collect ( ) , PageDeltaSerialization :: Empty | PageDeltaSerialization :: Mmap { .. } => { // This is really unreachable. See `serialize_page_delta()`. unreachable ! ( " " ) ; } } }
See the comments of the corresponding method in `PageAllocator`.
See the comments of the corresponding method in ` PageAllocator ` .
_page_allocator
&Arc<HeapBasedPageAllocator>
page_delta
PageDeltaSerialization
_page_allocator
&Arc<HeapBasedPageAllocator>
page_delta
PageDeltaSerialization