Skip to main content

minify_into

Function minify_into 

Source
pub fn minify_into(input: &str, out: &mut String) -> Result<()>
Expand description

minify into an existing String, replacing its contents and keeping its allocation.

Prefer this in a loop, the way write_into is preferred over to_string.

On failure out holds however much was copied before the error, which is the same bargain prettify_into makes.