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