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

StructInitAnon

Public Struct
std.zig.Zir.Inst.StructInitAnon
pub const StructInitAnon = struct

Trailing is an Item per field. TODO make this instead array of inits followed by array of names because it will be simpler Sema code and better for CPU cache.

Fields

abs_node: Ast.Node.Index

This is an anonymous initialization, meaning this instruction becomes the owner of a type. To resolve source locations, we need an absolute source node.

src_line: u32
src_column: u32
fields_len: u32

Structs

File

zig/Zir.zig:3830
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
    pub const StructInitAnon = struct {
        /// This is an anonymous initialization, meaning this instruction becomes the owner of a type.
        /// To resolve source locations, we need an absolute source node.
        abs_node: Ast.Node.Index,
        src_line: u32,
        src_column: u32,
        fields_len: u32,

        pub const Item = struct {
            /// Null-terminated string table index.
            field_name: NullTerminatedString,
            /// The field init expression to be used as the field value.
            init: Ref,
        };
    }