pub fn map(
text: impl AsRef<BStr>,
options: &TransformOptions,
) -> Result<String, Error>Expand description
Apply a transformation to a string, indicated by the TransformOptions.
This is a very thin wrapper around map_into, which allocates a fresh string.
It does not support a TransformCallback to reduce vebrosity.
Apply a transformation to a string, indicated by the TransformOptions,
writing the result into the specified destination string.
ยงLimitations
In order to guarantee the result is valid UTF8, some options are forbidden. Use the advanced interface to work around this.