#004
Jan 2022
4. Option -> Result
Convert Option to Result easily.
| |
Convert Option to Result easily.
| |
Convert Result to Option easily.
| |
Use @ to bind a pattern to a name.
| |
| |
| |
Need to check if an expression matches certain pattern?
| |
The example above checks if len is 0 or 1.
Or
| |
Hello and welcome to rustbites.com
| |
explanation and details