Crate into_string

Source
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 the max feature. When max is disabled, into_string uses the min_specialization API, which lacks some of the features of specialization, but is complete (currently, specialization is marked as an incomplete feature and shows a warning when enabled)

Traitsยง

AsCowStr
Helper trait to turn ToString-able values into strings, avoiding an allocation for &str
FromString
IntoCString
A similar trait to ToString, but for CStrs, and avoiding an extra allocation when applied to a CString
IntoCowStrmax
Helper trait to turn ToString-able values into strings, avoiding an allocation for Strings and &str
IntoOsStringstd
A similar trait to ToString, but for OsStrs, and avoiding an extra allocation when applied to a OsString.
IntoPathBufstd
A similar trait to ToString, but for Paths, and avoiding an extra allocation when applied to a PathBuf.
IntoString
A similar trait to ToString, but avoiding an extra allocation when applied to a String