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 › ArrayHashMap › updateEntryIndex Private Function updateEntryIndex Doc Source Private Function std.array_hash_map.ArrayHashMap.updateEntryIndex
fn updateEntryIndex (
self : *Self ,
header : *IndexHeader ,
old_entry_index : usize ,
new_entry_index : usize ,
ctx : ByIndexContext ,
comptime I : type ,
indexes : []Index (I ),
) void Params File array_hash_map.zig: 1200
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211 fn updateEntryIndex (
self : *Self ,
header : *IndexHeader ,
old_entry_index : usize ,
new_entry_index : usize ,
ctx : ByIndexContext ,
comptime I : type ,
indexes : []Index (I ),
) void {
const slot = self .getSlotByIndex (old_entry_index , ctx , header , I , indexes );
indexes [slot ].entry_index = @as (I , @intCast (new_entry_index ));
}