Closed sffc closed 2 weeks ago
I considered a few other signatures. I picked this one because:
&str
, we'd need to check each character again. If you want to append a &str
, you can first convert it to a TinyAsciiStr
of the same size as the output.concat
is more general than some of the alternatives. For example, to push a single character, you can make a TinyAsciiStr<1>
and then call concat
.*x = x.concat(y)
. Note that &mut self
is not const.Q == M + N
because resize
already is documented to do the truncation thing, and it saves the client from having to call resize
themselves.@zbraniecki You can submit this (to unblock your PR) if you agree with my logic about not adding the assertion.
I'm fine merging it as is. No blockers.
5729