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.

addExtra

Interner.addExtra
fn addExtra(i: *Interner, gpa: Allocator, extra: anytype) Allocator.Error!u32

File

Code

fn addExtra(i: *Interner, gpa: Allocator, extra: anytype) Allocator.Error!u32 {
    const field_count = @typeInfo(@TypeOf(extra)).@"struct".field_names.len;
    try i.extra.ensureUnusedCapacity(gpa, field_count);
    return i.addExtraAssumeCapacity(extra);
}