ParkMyCar / compact_str

A memory efficient string type that can store up to 24* bytes on the stack
MIT License
652 stars 47 forks source link

Missed API: CompactStr -> std::borrow::Cow<'_, str> #226

Closed Dushistov closed 1 year ago

Dushistov commented 2 years ago

It would be nice to make such code works:

    let s: std::borrow::Cow<'_, str> = CompactString::new("aaa").into();
Greatness7 commented 1 year ago

+1

I hope this can get added soon!