3 ms·Rust struct that stores tiny strings in the pointer itself4 points by brundolf 5y agoshoefindortz 5y agoNeat! This is commonly known as Small String / Small Buffer Optimization. This is how most implementations of C++'s std::string work also.