into_result: Convert Object into Result

Description Usage Arguments Value Examples

View source: R/result_option.R

Description

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

Usage

1

Arguments

x

Object to be converted

...

Objects passed to methods

Value

an Enum object of class Result

Examples

1
2
nothing <- Option$None
into_result(nothing) # Err

matchr documentation built on Sept. 9, 2021, 5:07 p.m.

Related to into_result in matchr...