Closed AlexNav73 closed 6 years ago
format!
String::with_capacity
Display
Cow
Thank you for your PR. Will merge it to develop branch then check it at home
develop
format!
macro, because it usesString::with_capacity
to create destination string.format!
macro allow to callDisplay
trait implementation onCow
and if it contains borrowed value, it doesn't allocate new string.