4 ms·
I regularly get super confused by what coerces and what doesn’t. I swear there’s cases where ? works but into() does not. It’s many things. But simple ain’t on
by forrestthewoods 1y ago
I regularly get super confused by what coerces and what doesn’t. I swear there’s cases where ? works but into() does not.
It’s many things. But simple ain’t one of them =D
- Expurple 1y agoI'm not aware of such cases. And The Rust Reference says [1]: > If the value is Err(e), then it will return Err(From::from(e)) from the enclosing function or closure. Without a specific example, I can't help you further. [1]: https://doc.rust-lang.org/stable/reference/expressions/operator-expr.html#r-expr.try.effects-err https://doc.rust-lang.org/stable/reference/expressions/opera...