fn load(map: &[Option<ChunkId>], backend: &Backend, seq: u32) -> Result<Self> {
        let cid = map[seq as usize]
            .clone()
            .unwrap_or_else(|| panic!("failed to locate chunk {} in map", seq));
        Ok((
            backend.load(cid.as_str()).map_err(|e| Error::BackendLoad {
                chunk_id: cid,
                source: e,
            })?,
            seq,
        )
            .into())
    }
/// Fetches a chunk from the backend.
///
/// Panics if the requested page is a zero page and thus not present in the backend.
Fetches a chunk from the backend.
Panics if the requested page is a zero page and thus not present in the backend.
Fetches a chunk from the backend . Panics if the requested page is a zero page and thus not present in the backend .
fn load(map: &[Option<ChunkId>], backend: &Backend, seq: u32) -> Result<Self> {
        let cid = map[seq as usize]
            .clone()
            .unwrap_or_else(|| panic!("failed to locate chunk {} in map", seq));
        Ok((
            backend.load(cid.as_str()).map_err(|e| Error::BackendLoad {
                chunk_id: cid,
                source: e,
            })?,
            seq,
        )
            .into())
    }
fn load ( map : & [ Option < ChunkId > ] , backend : & Backend , seq : u32 ) -> Result < Self > { let cid = map [ seq as usize ] . clone ( ) . unwrap_or_else ( | | panic ! ( " " seq ) ) ; Ok ( ( backend . load ( cid . as_str ( ) ) . map_err ( | e | Error :: BackendLoad { chunk_id : cid , source : e , } ) ? , seq , ) . into ( ) ) }
Fetches a chunk from the backend.
Fetches a chunk from the backend .
map
&[Option<ChunkId>]
backend
&Backend
seq
u32
map
&[Option<ChunkId>]
backend
&Backend
seq
u32