Learning Rust by building a CLI leveraging nom (parser combinators). It’s fun stumbling around in the dark here.
You're returning a function that can be called multiple times, so you can't just return the same value. If you don't need to call this function multiple times try `impl FnOnce`. If you do, you'll need to clone the value (or wrap it in a shared pointer like Rc or Arc
-
-
Awesome, this was helpful! I ended up with this; not sure it's the most idiomatic, but it works and I think aligns with what you were saying...pic.twitter.com/zK3r635Yjk
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.