this post was submitted on 23 Nov 2023
41 points (91.8% liked)
Rust
5981 readers
24 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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