Is it possible to initialize an empty str
of a known length? I'm trying to write a parser. The output of each parsed message will be a 2x10 table, where each row has 2 str
's of a known length, and I want to push characters into each str
until it's full.
Should I use [char; N]
instead?
Since I want to push characters in one at a time, should I implement my own struct to hold an index for the next insert?