-
See test above. I have a parser ( If I use the parser via the parser trait: If I replace the call with It's really puzzling to me, the only intuition I would have is that in one case my string slice is a mutable reference and in the other it's not... I checked the trait's implementation but couldn't find a hint for the error. Any explanation or how to fix it would be greatly appreciated! Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Calling the function directly is the equivalent of |
Beta Was this translation helpful? Give feedback.
rest
would consume the input but the fact that your parser isn't already would be a code smell to me and I would recommend double checking how you are doing things.