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.

initLazyPathList

Serialize.initLazyPathList
fn initLazyPathList(s: *Serialize, list: []const std.Build.LazyPath) ![]const Configuration.LazyPath.Index

File

lib/std/Build/Serialize.zig:1038

Code

fn initLazyPathList(s: *Serialize, list: []const std.Build.LazyPath) ![]const Configuration.LazyPath.Index {
    const result = try s.arena.alloc(Configuration.LazyPath.Index, list.len);
    for (result, list) |*dest, src| dest.* = try addLazyPath(s, src);
    return result;
}