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 › sortContextInternal Private Function sortContextInternal Doc Source Private Function std.array_hash_map.Custom.sortContextInternal
fn sortContextInternal (
self : *Self ,
comptime mode : std .sort .Mode ,
sort_ctx : anytype ,
ctx : Context ,
) void Params File array_hash_map.zig: 950
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966 fn sortContextInternal (
self : *Self ,
comptime mode : std .sort .Mode ,
sort_ctx : anytype ,
ctx : Context ,
) void {
self .pointer_stability .lock ();
defer self .pointer_stability .unlock ();
switch (mode ) {
.stable => self .entries .sort (sort_ctx ),
.unstable => self .entries .sortUnstable (sort_ctx ),
}
const header = self .index_header orelse return ;
header .reset ();
self .insertAllEntriesIntoNewHeader (if (store_hash ) {} else ctx , header );
}