fn dump(self: *Self) void
self: *Self
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
fn dump(self: *Self) void { const print = std.debug.print; print("{{ ", .{}); print("items: ", .{}); for (self.items, 0..) |e, i| { if (i >= self.len) break; print("{}, ", .{e}); } print("array: ", .{}); for (self.items) |e| { print("{}, ", .{e}); } print("len: {} ", .{self.len}); print("capacity: {}", .{self.capacity()}); print(" }}\n", .{}); }