Function clone [src]

Prototype

pub fn clone(p: Path, arena: Allocator) Allocator.Error!Path

Parameters

p: Patharena: Allocator

Source

pub fn clone(p: Path, arena: Allocator) Allocator.Error!Path { return .{ .root_dir = try p.root_dir.clone(arena), .sub_path = try arena.dupe(u8, p.sub_path), }; }