pub fn replace_with<const CAP: usize, Item, Gap>(
linked_chunk: &mut LinkedChunk<CAP, Item, Gap>,
chunk: Option<RawChunk<Item, Gap>>,
chunk_identifier_generator: ChunkIdentifierGenerator,
) -> Result<(), LazyLoaderError>
Expand description
Replace the items with the given last chunk of items and generator.
This clears all the chunks in memory before resetting to the new chunk, if provided.