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

PtrType

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

Stored in extra. Depending on the flags in Data, there will be up to 5 trailing Ref fields:

  1. sentinel: Ref // if has_sentinel flag is set
  2. align: Ref // if has_align flag is set
  3. address_space: Ref // if has_addrspace flag is set
  4. bit_start: Ref // if has_bit_range flag is set
  5. host_size: Ref // if has_bit_range flag is set

Fields

elem_type: Ref
src_node: Ast.Node.Offset

File

zig/Zir.zig:3179
3179
3180
3181
3182
    pub const PtrType = struct {
        elem_type: Ref,
        src_node: Ast.Node.Offset,
    }