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

Implemented custom Debug for InlinableString #16

Closed winstonewert closed 6 years ago

winstonewert commented 6 years ago

I've implemented Debug by calling into the Debug for &str. This means that it does not show you whether not a string is inline or on the heap. This could be useful information, but I'm thinking the 99% case is that the string is being debug printed as part of a bigger structure where Inline vs Heap is noise, and we only care about the value.

fitzgen commented 6 years ago

Thanks!