This PR adds a new API CompactString::into_bytes which consumes a CompactString, returning a byte vector, just like the String::into_bytes method.
A difference though is CompactString::into_bytes returns a SmallVec which allows us to avoid needing to allocate, by re-using the underlying buffer from the CompactString
This PR adds a new API
CompactString::into_bytes
which consumes aCompactString
, returning a byte vector, just like theString::into_bytes
method.A difference though is
CompactString::into_bytes
returns aSmallVec
which allows us to avoid needing to allocate, by re-using the underlying buffer from theCompactString