Is the conversion from bytes to Vec O(1) if the underlying memory is already contiguous and the ref count is 1?
Or do we still have new allocations and copying?
I looked at #547, it seems to suggest that it indeed is O(1) but the docs say
Copies self into a new Vec.
Is the conversion from bytes to Vec O(1) if the underlying memory is already contiguous and the ref count is 1?
Or do we still have new allocations and copying?
I looked at #547, it seems to suggest that it indeed is O(1) but the docs say
Copies self into a new Vec.