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

Implement a proper Debug #10

Closed ArtemGr closed 6 years ago

ArtemGr commented 7 years ago

Right now Debug prints a bunch of character codes, which is not what we expect from a string.

What we have:

Inline(InlineString { length: 12, bytes: [40, 50, 52, 52, 54, 54, 41, 32, 61, 32, 50, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] })
ArtemGr commented 6 years ago

16