42
Small pattern that made my code much cleaner
(lemmy.ca)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
I don't get it!
If the
TinResult(and presumablyOption) is(), then why not just useis_ok()/is_err()from the caller side?Other Tips:
boolhasthen()andthen_some()methods instdnow.transpose()in both directions betweenResultᐸOptionᐸTᐳᐳs andOptionᐸResultᐸTᐳᐳs