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.
Zig › std/ › zig/ › llvm/ › Builder.zig › TypeExtraDataTrail
TypeExtraDataTrail
Builder.TypeExtraDataTrail
const TypeExtraDataTrail = struct
File
Code
const TypeExtraDataTrail = struct {
index : Type .Item .ExtraIndex ,
fn nextMut (self : *TypeExtraDataTrail , len : u32 , comptime Item : type , builder : *Builder ) []Item {
const items : []Item = @ptrCast (builder .type_extra .items [self .index ..][0 ..len ]);
self .index += @intCast (len );
return items ;
}
fn next (
self : *TypeExtraDataTrail ,
len : u32 ,
comptime Item : type ,
builder : *const Builder ,
) []const Item {
const items : []const Item = @ptrCast (builder .type_extra .items [self .index ..][0 ..len ]);
self .index += @intCast (len );
return items ;
}
}