Zig 0.17.0-dev (Split by item) 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.
std › array_hash_map › Custom › insertAllEntriesIntoNewHeaderGeneric Private Function insertAllEntriesIntoNewHeaderGeneric Doc Source 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 );
}
}