Zig 0.17.0-dev (Split by item)

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 library itself.

Type

Step.Type
pub fn Type(comptime tag: Tag) type

File

lib/std/Build/Step.zig:41

Code

pub fn Type(comptime tag: Tag) type {
    return switch (tag) {
        .check_file => CheckFile,
        .compile => Compile,
        .config_header => ConfigHeader,
        .fail => Fail,
        .find_program => FindProgram,
        .fmt => Fmt,
        .install_artifact => InstallArtifact,
        .install_dir => InstallDir,
        .install_file => InstallFile,
        .obj_copy => ObjCopy,
        .options => Options,
        .run => Run,
        .top_level => TopLevel,
        .translate_c => TranslateC,
        .update_source_files => UpdateSourceFiles,
        .write_file => WriteFile,
    };
}