Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Function

insertAllEntriesIntoNewHeaderGeneric

Private Function
std.array_hash_map.Custom.insertAllEntriesIntoNewHeaderGeneric
fn insertAllEntriesIntoNewHeaderGeneric(self: *Self, ctx: ByIndexContext, header: *IndexHeader, comptime I: type) void

Params

File

array_hash_map.zig:1427
1427
1428
1429
1430
1431
1432
1433
1434
1435
        fn insertAllEntriesIntoNewHeaderGeneric(self: *Self, ctx: ByIndexContext, header: *IndexHeader, comptime I: type) void {
            const slice = self.entries.slice();
            const items = if (store_hash) slice.items(.hash) else slice.items(.key);

            for (items, 0..) |hash_or_key, i| {
                const h = if (store_hash) hash_or_key else checkedHash(ctx, hash_or_key);
                insertEntryIntoNewHeaderGeneric(header, h, i, I);
            }
        }