fitzgen / inlinable_string

An owned, grow-able UTF-8 string that stores small strings inline and avoids heap-allocation.
http://fitzgen.github.io/inlinable_string/inlinable_string/index.html
Other
69 stars 11 forks source link

Implement `insert_str()` #27

Closed lo48576 closed 3 years ago

lo48576 commented 4 years ago

String::insert_str is added since Rust 1.16.0, and it would be faster to use unsafe.

The last commit adds StringExt::insert_str() and it is breaking change. Withouth the last commit, this patch is non-breaking change.

cc: #26