Closed NobodyXu closed 2 years ago
Hi
I am implementing https://github.com/ParkMyCar/compact_str/pull/16 which uses ryu::Buffer::format to format f32 and f64 into CompactStr.
ryu::Buffer::format
f32
f64
CompactStr
When looking at the code, I realized that in the current implementation, ryu::Buffer::format can return a string that is at most 24 bytes long.
I want to know if this is a behavior guaranteed to exist as long as no new major release happen.
Thanks in advance.
This is not guaranteed.
Thanks!
Hi
I am implementing https://github.com/ParkMyCar/compact_str/pull/16 which uses
ryu::Buffer::format
to formatf32
andf64
intoCompactStr
.When looking at the code, I realized that in the current implementation,
ryu::Buffer::format
can return a string that is at most 24 bytes long.I want to know if this is a behavior guaranteed to exist as long as no new major release happen.
Thanks in advance.