Expand description
String
implementation optimized for small sized strings(at most length mem::size_of::<usize>() * 2 - 2
)
Features
serde
- EnablesSerialize
andDeserialize
implementations.std
- Enables traits implementations dependent onstd
.
Missing functions
String::from_utf8
- due tominivec
yet to be stable.String::from_utf8_unchecked
- due tominivec
yet to be stable.String::into_bytes
- due tominivec
yet 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
macro to replace std’s macro
Structs
Draining iterator over String
Enums
String
, similar to that in std
, but optimized with SSO (small string optimization).
Traits
Extension trait to override methods that returns std’s String