Wondering which extensions to the Read / Write trait would be needed to reproduce 80% of what Nom does. Probably should actually *try* nom first, but got a vague suspicion a few key additions would get us there? https://docs.rs/nom/5.0.1/nom/
Wondering if something like `BufReader::try_read_until` could work for this? E.g. read until a char is found, but then manually need to call `BufReader::consume` to adjust the position (giving a chance to backtrack). Similar maybe a `Read::try_read_exact`.
-
-
Yes that would work. Branches and backtracking can often happen on a single char (like detecting a '(' or '[' in json). You'll definitely need a read_while too, that's very common https://docs.rs/nom/5.0.1/nom/bytes/complete/fn.take_while.html …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.