Function clone [src]

Prototype

pub fn clone(d: Directory, arena: Allocator) Allocator.Error!Directory

Parameters

d: Directoryarena: Allocator

Source

pub fn clone(d: Directory, arena: Allocator) Allocator.Error!Directory { return .{ .path = if (d.path) |p| try arena.dupe(u8, p) else null, .handle = d.handle, }; }