PSA: Please don't do this in #Rust:
if let (Ok(foo), Ok(bar)) = (expensive_op(), expensive_op()) {
println!("{foo} {bar}")
}
It can be very inefficient, causing people to wait on your software wasting their time (I've just seen this in a fairly popular open source project with 3k stars)!
For a better, more maintainable and efficient version, see second toot or have a look at the playground for the full examples:
1/2