Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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. Private Enum

Builtin

Private Enum
std.zig.llvm.BitcodeReader.Abbrev.Builtin
const Builtin = enum(u2)

Values

Functions

fn toRecordId(builtin: Builtin) u32

File

zig/llvm/BitcodeReader.zig:454
454
455
456
457
458
459
460
461
462
463
464
    const Builtin = enum(u2) {
        end_block,
        enter_subblock,
        define_abbrev,
        unabbrev_record,

        const first_record_id: u32 = std.math.maxInt(u32) - @typeInfo(Builtin).@"enum".field_names.len + 1;
        fn toRecordId(builtin: Builtin) u32 {
            return first_record_id + @backingInt(builtin);
        }
    }