DoxigAlpha

appendSlice

Function parameters

Parameters

#
self:*Self
items:[]const T

This is a stack data structure where pointers to indexes have the same lifetime as the data structure

Functions

#
SegmentedList
This is a stack data structure where pointers to indexes have the same lifetime as the data structure

Source

Implementation

#
pub fn appendSlice(self: *Self, allocator: Allocator, items: []const T) Allocator.Error!void {
    for (items) |item| {
        try self.append(allocator, item);
    }
}