pub fn sufficient_alloc_size<R: Replace>(
input: &str,
options: &Options<R>,
) -> usize
Expand description
Calculate a sufficient allocation size for the string used. This number will never exceed
input.len() + 1 + options.reserve_extra
, and will be less on ridiculously long inputs.
Only intended for use by crazy allocation-counters like me.