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/
Like full disclaimer: I barely know how parsers work. In my mind it seems like mostly a combination of: - "read until you find this byte" - "read n bytes" And then get a reference to the bytes that were read, and do something with that. Wondering if we could make those easier?
-
-
Heh, I guess this works already: - BufReader::read_until https://doc.rust-lang.org/std/io/trait.BufRead.html#method.read_until … - Read::read_exact https://doc.rust-lang.org/std/io/trait.Read.html#method.read_exact … Hmmm.
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
For binary parsers, that's definitely true.
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.