2 ms·
Not without being able to use the ? operator. The closest thing I can think of that will let you return a result from within a separate scope using a set of fo
by jeroenhd 11mo ago
Not without being able to use the ? operator.
The closest thing I can think of that will let you return a result from within a separate scope using a set of foo()? calls would be a lambda function that's called immediately, but that has its own problems when it comes to moving and it probably doesn't compile to very fast code either. Something like https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=52069d6bcfae04843412cb84346cb827 https://play.rust-lang.org/?version=stable&mode=debug&editio...