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. Public Function
indexOf
Public Function
std.enums.EnumIndexer.indexOf
pubfnindexOf(e: E) usize
Params
e: E
File
enums.zig:1351
135113521353135413551356
pubfnindexOf(e: E) usize {
for (keys, 0..) |k, i| {
if (k == e) returni;
}
unreachable;
}