pub fn new<Str>(s: Str) -> char_p_boxedwhere
char_p_boxed: __<Str>,
Available on crate feature
alloc
only.Expand description
Constructs a new char_p::Box
off a stringy input.
§Panics
Panics if the stringy input:
- contains an interior (non-last)
NUL
byte (forstr
-y types); - is not UTF-8 (for
CStr
-y types).