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. Public Struct

Index

Public Struct
std.zig.Zir.UnwrappedSwitchBlock.Case.Index
pub const Index = packed struct(u32)

Fields

kind: enum(u1) { scalar, multi }
value: u31

Values

File

zig/Zir.zig:5139
5139
5140
5141
5142
5143
5144
5145
5146
5147
        pub const Index = packed struct(u32) {
            kind: enum(u1) { scalar, multi },
            value: u31,

            pub const @"else": Case.Index = .{
                .kind = .scalar,
                .value = std.math.maxInt(u31),
            };
        }