What's the idiomatic way to handle multiple `Option<T>` in Rust?
问题 Since I'm fairly new to Rust, I need guidance on how error handling is done idiomatically. I find the error-handling boilerplate really annoying. I'm stuck with multiple Option<T> s. It's too verbose to handle each None case manually. In Haskell, for example, you can chain optional value ( Maybe ) operations with a variety of operators: fmap , <*> , >>= , etc.: f x = x * x g x = x ++ x main = print $ g <$> show <$> f <$> Just 2 The same looks impossible in Rust. I'm trying to parse a two