init
Function parameters
Parameters
Functions in this namespace
Functions
- writer
- Warning: This writer writes backwards.
- clearAndFree
- Invalidates all element pointers.
- toOwnedSlice
- The caller owns the returned memory.
Source
Implementation
pub fn init(allocator: Allocator) ArrayListReverse {
return .{ .data = &.{}, .capacity = 0, .allocator = allocator };
}