Now the complex structure the parser uses means that it's probably cheating to still consider it zero-copy, but I think this would be possible if the parser didn't store keys and strings as Cows. The Cows are used to handle the escaped characters that could be included in the vdf text, so I think it would be best to look at what other parsers that support zero-copy deserializers do in this case.
Since the parser stores strings as Cows things can be borrowed when there aren't escaped characters, it just takes some annotations and storing the value as a Cow as well
Now the complex structure the parser uses means that it's probably cheating to still consider it zero-copy, but I think this would be possible if the parser didn't store keys and strings as
Cow
s. TheCow
s are used to handle the escaped characters that could be included in the vdf text, so I think it would be best to look at what other parsers that support zero-copy deserializers do in this case.