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 standard library.
std › zig › llvm › Builder › ensureUnusedTypeCapacity Private Function ensureUnusedTypeCapacity Doc Source Private Function std.zig.llvm.Builder.ensureUnusedTypeCapacity
fn ensureUnusedTypeCapacity (
self : *Builder ,
count : usize ,
comptime Extra : type ,
trail_len : usize ,
) Allocator .Error !void Params self : *Builder count : usize Extra : type trail_len : usize File zig/llvm/Builder.zig: 12166
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178 fn ensureUnusedTypeCapacity (
self : *Builder ,
count : usize ,
comptime Extra : type ,
trail_len : usize ,
) Allocator .Error !void {
try self .type_map .ensureUnusedCapacity (self .gpa , count );
try self .type_items .ensureUnusedCapacity (self .gpa , count );
try self .type_extra .ensureUnusedCapacity (
self .gpa ,
count * (@typeInfo (Extra ).@"struct" .field_names .len + trail_len ),
);
}