fn toManaged(self: Const, allocator: Allocator) Allocator.Error!Managed
The result is an independent resource which is managed by the caller.
self: Const,
allocator: Allocator,