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

GlobalBlock

Public Struct
std.process.Environ.GlobalBlock
pub const GlobalBlock = struct

Fields

use_global: bool

Values

Functions

pub fn deinit(_: GlobalBlock, _: Allocator) void
pub fn isEmpty(block: GlobalBlock) bool

File

process/Environ.zig:35
35
36
37
38
39
40
41
42
43
44
45
46
pub const GlobalBlock = struct {
    use_global: bool,

    pub const empty: GlobalBlock = .{ .use_global = false };
    pub const global: GlobalBlock = .{ .use_global = true };

    pub fn deinit(_: GlobalBlock, _: Allocator) void {}

    pub fn isEmpty(block: GlobalBlock) bool {
        return !block.use_global;
    }
}