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 library itself.
pubconstqos_class_t = enum(c_uint) {
/// highest priority QOS class for critical tasksUSER_INTERACTIVE = 0x21,
/// slightly more moderate priority QOS classUSER_INITIATED = 0x19,
/// default QOS class when none is setDEFAULT = 0x15,
/// more energy efficient QOS class than defaultUTILITY = 0x11,
/// QOS class more appropriate for background tasksBACKGROUND = 0x09,
/// QOS class as a return valueUNSPECIFIED = 0x00,
_,
}