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

Enumerator

Public Struct
std.zig.llvm.ir.ModuleBlock.MetadataBlock.Enumerator
pub const Enumerator = struct

Fields

flags: Flags
bit_width: u32
name: Builder.Metadata.String.Optional
value: u64

Structs

Values

File

zig/llvm/ir.zig:1844
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
        pub const Enumerator = struct {
            pub const Flags = packed struct(u3) {
                distinct: bool = false,
                unsigned: bool,
                bigint: bool = true,
            };

            pub const ops = [_]AbbrevOp{
                .{ .literal = @backingInt(ModuleBlock.MetadataBlock.Code.ENUMERATOR) },
                .{ .fixed = @bitSizeOf(Flags) }, // flags
                .{ .vbr = 6 }, // bit width
                MetadataAbbrev, // name
                .{ .vbr = 16 }, // integer value
            };

            flags: Flags,
            bit_width: u32,
            name: Builder.Metadata.String.Optional,
            value: u64,
        }