Function clone [src]
Prototype
pub fn clone(p: Path, arena: Allocator) Allocator.Error!Path
Parameters
p: Path
arena: 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),
};
}