pub type StringBuf = FlexibleString<STACK_SIZE>;Expand description
A string buffer type.
Used at Formatter.
By default, it is an alias for String, if feature flexible-string is
enabled, an internal type FlexibleString will be used.
FlexibleString has a fixed stack buffer of 256 bytes, and upgrades to
String when more space is needed. It provides APIs that are as
consistent as possible with String, but some APIs are not yet
implemented or not possible to be implemented.
FlexibleString can improve performance as it avoids memory allocation when
formatting records as much as possible, however it contains unsafe code that
has not been strictly reviewed.
Aliased Typeยง
pub struct StringBuf(/* private fields */);