Function initOwnedSlice [src]

Prototype

pub fn initOwnedSlice(allocator: Allocator, slice: []u8) Allocating

Parameters

allocator: Allocatorslice: []u8

Source

pub fn initOwnedSlice(allocator: Allocator, slice: []u8) Allocating { return initOwnedSliceAligned(allocator, .of(u8), slice); }