3 ms·
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)?;
by mmstick 9y 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)?;