DoxigAlpha

toOwnedSlice

The caller owns the returned memory. Empties this MultiArrayList.

Function parameters

Parameters

#
self:*Self

A MultiArrayList stores a list of a struct or tagged union type.

Functions

#
MultiArrayList
A MultiArrayList stores a list of a struct or tagged union type.

Source

Implementation

#
pub fn toOwnedSlice(self: *Self) Slice {
    const result = self.slice();
    self.* = .{};
    return result;
}