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

RetTy

Public Struct
std.zig.Zir.Inst.Func.RetTy
pub const RetTy = packed struct(u32)

Fields

body_len: u31

0 means void. 1 means the type is a simple Ref. Otherwise, the length of a trailing body.

is_generic: bool

Whether the return type is generic, i.e. refers to one or more previous parameters.

File

zig/Zir.zig:2621
2621
2622
2623
2624
2625
2626
2627
2628
        pub const RetTy = packed struct(u32) {
            /// 0 means `void`.
            /// 1 means the type is a simple `Ref`.
            /// Otherwise, the length of a trailing body.
            body_len: u31,
            /// Whether the return type is generic, i.e. refers to one or more previous parameters.
            is_generic: bool,
        }