powered by
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
Result
Ok
Some
Option
None
Err
into_result(x, ...)
Object to be converted
Objects passed to methods
an Enum object of class Result
# NOT RUN { nothing <- Option$None into_result(nothing) # Err # }
Run the code above in your browser using DataLab