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

OpaqueDecl

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

Trailing:

  1. captures_len: u32, // if has_captures_len
  2. decls_len: u32, // if has_decls_len
  3. capture: Capture, // for every captures_len
  4. capture_name: NullTerminatedString // for every captures_len
  5. decl: Index, // for every decls_len; points to a declaration instruction

Fields

src_line: u32
src_column: u32
src_node: Ast.Node.Index

This node provides a new absolute baseline node for all instructions within this struct.

Structs

File

zig/Zir.zig:3764
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
    pub const OpaqueDecl = struct {
        src_line: u32,
        src_column: u32,
        /// This node provides a new absolute baseline node for all instructions within this struct.
        src_node: Ast.Node.Index,

        pub const Small = packed struct(u16) {
            has_captures_len: bool,
            has_decls_len: bool,
            name_strategy: NameStrategy,
            _: u12 = 0,
        };
    }