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 themaxfeature. Whenmaxis disabled,into_stringuses themin_specializationAPI, which lacks some of the features ofspecialization, but is complete (currently,specializationis 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 forCStrs, and avoiding an extra allocation when applied to aCString - Into
CowStr max - Helper trait to turn
ToString-able values into strings, avoiding an allocation forStrings and&str - Into
OsString std - A similar trait to
ToString, but forOsStrs, and avoiding an extra allocation when applied to aOsString. - Into
Path Buf std - A similar trait to
ToString, but forPaths, 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