Expand description
into_string
is a helper crate to convert values into strings avoiding extra allocations.
Note
Some of the functionality of this crate must be enabled with themax
feature. Whenmax
is disabled,into_string
uses themin_specialization
API, which lacks some of the features ofspecialization
, but is complete (currently,specialization
is marked as an incomplete feature and shows a warning when enabled)
Traitsยง
- AsCow
Str - Helper trait to turn
ToString
-able values into strings, avoiding an allocation for&str
- From
String - IntoC
String - A similar trait to
ToString
, but forCStr
s, and avoiding an extra allocation when applied to aCString
- Into
CowStr max
- Helper trait to turn
ToString
-able values into strings, avoiding an allocation forString
s and&str
- Into
OsString std
- A similar trait to
ToString
, but forOsStr
s, and avoiding an extra allocation when applied to aOsString
. - Into
Path Buf std
- A similar trait to
ToString
, but forPath
s, and avoiding an extra allocation when applied to aPathBuf
. - Into
String - A similar trait to
ToString
, but avoiding an extra allocation when applied to aString