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?
-
-
Show this thread
-
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 thread
End of conversation
New conversation -
-
-
*pokes
@gcouprie with an async stick* -
nom already works with those traits and fits with AsyncRead etc. Are you looking to add combinators to the trait to parse stuff?
- 5 more replies
New conversation -
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.