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.

StringList

Points into extra, where the first element is count of strings, following elements is String per count.

Stored identically to Deps.

Configuration.StringList
pub const StringList = enum(u32)

File

lib/std/Build/Configuration.zig:1838

Code

pub const StringList = enum(u32) {
    _,

    pub fn slice(this: @This(), c: *const Configuration) []const String {
        const len = c.extra[@backingInt(this)];
        return @ptrCast(c.extra[@backingInt(this) + 1 ..][0..len]);
    }
}