Skip to main content

group_embedded_chunks_by_path

Function group_embedded_chunks_by_path 

Source
pub fn group_embedded_chunks_by_path(
    embedded_chunks: &[EmbeddedChunk],
    chunk_ids: &[u32],
) -> HashMap<String, Vec<u32>>
Expand description

Group embedded chunks by their file path

Specialized version for embedded chunks (which already contain the chunk data).

§Arguments

  • embedded_chunks - Slice of embedded chunks to group
  • chunk_ids - Slice of chunk IDs corresponding to the embedded chunks

§Returns

  • HashMap mapping file paths (as strings) to vectors of chunk IDs