WrapResult<T> extension

on
  • T

Methods

err<OK>() Result<OK, T>
Wraps this in a Result where this is the type of Result.ERR.
ok<ERR>() Result<T, ERR>
Wraps this in a Result where this is the type of Result.OK.