fn add(mut self, other: &str) -> String { self.push_str(other); self }
Of course, upfront sizing is still advantageous, but you avoid the pathological n² case.
Of course, upfront sizing is still advantageous, but you avoid the pathological n² case.