Description Usage Arguments Value Examples
View source: R/result_option.R
Create a Result out of an object. By default the object is wrapped in an Ok variant.
Some variants of Option are turned into Ok Results, while None variants are
turned into Err Results
1 | into_result(x, ...)
|
x |
Object to be converted |
... |
Objects passed to methods |
an Enum object of class Result
1 2 | nothing <- Option$None
into_result(nothing) # Err
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.