is there anything like the ? syntax (sugar for returning Err) but for None?
-
Show this thread
Replying to @mountain_ghosts
There isn't, tho ? can be used to cast None to NoneError — returning a Result instead of an Option. Might still only be on nightly tho.
3:30 AM - 25 Mar 2019
from Berlin, Germany
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.