std
::
core
::
string
copy
fn
String
String
.
copy
(
self
,
Allocator
allocator
)
Copy this string, by duplicating the string, always adding a zero byte
sentinel, so that it safely can be converted to a ZString by a
cast.
Parameters