Expand description
String implementation optimized for small sized strings(at most length mem::size_of::<usize>() * 2 - 2)
§Features
serde- EnablesSerializeandDeserializeimplementations.std- Enables traits implementations dependent onstd.
§Missing functions
String::from_utf8- due tominivecyet to be stable.String::from_utf8_unchecked- due tominivecyet to be stable.String::into_bytes- due tominivecyet to be stable.- Unstable functions of String - due to them being potentially changed.
String::from_raw_parts- cannot be implemented due to internal structure.
Macros§
- format
formatmacro to replace std’s macro
Structs§
- Drain
- Draining iterator over
String
Enums§
- String
String, similar to that instd, but optimized with SSO (small string optimization).
Traits§
- StrExt
- Extension trait to override methods that returns std’s String