Rust lifetime issue in loop
问题 How to get this example to compile without array copying or multiple calls to b() per iteration — b() has to perform some expensive parsing? This is not the full code that I wrote, but it illustrates the problem I had. Here, Test is attempting to perform some kind of streaming parsing work. c() is the parsing function, it returns Some when parsing was successful. b() is a function that attempts to read more data from the stream when c() can not parse using the available data yet. The returned