Y
Hacker News
new
|
ask
|
show
|
jobs
by
mmstick
3130 days ago
You can mix them if you take your
Options
and convert them into
Results
with the
Option::ok_or(E)
method.
do_this(x).ok_or(CustomError::ThisError)?;