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
T
inResult
(and presumablyOption
) is()
, then why not just useis_ok()
/is_err()
from the caller side?Other Tips:
bool
hasthen()
andthen_some()
methods instd
now.transpose()
in both directions betweenResultᐸOptionᐸTᐳᐳ
s andOptionᐸResultᐸTᐳᐳ
s