Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)?;


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: