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 › removeByKeyGeneric Private Function removeByKeyGeneric Doc Source Private Function std.array_hash_map.ArrayHashMap.removeByKeyGeneric
fn removeByKeyGeneric (self : *Self , key : anytype , key_ctx : anytype , ctx : ByIndexContext , header : *IndexHeader , comptime I : type , comptime removal_type : RemovalType ) bool Params File array_hash_map.zig: 1145
1145
1146
1147
1148
1149
1150 fn removeByKeyGeneric (self : *Self , key : anytype , key_ctx : anytype , ctx : ByIndexContext , header : *IndexHeader , comptime I : type , comptime removal_type : RemovalType ) bool {
const indexes = header .indexes (I );
const entry_index = self .removeFromIndexByKey (key , key_ctx , header , I , indexes ) orelse return false ;
self .removeFromArrayAndUpdateIndex (entry_index , ctx , header , I , indexes , removal_type );
return true ;
}