| 422 | template <typename U, typename E = typename std::enable_if< |
| 423 | std::is_constructible<U, T>::value>::type> |
| 424 | Result<U> As() && { |
| 425 | if (!ok()) { |
| 426 | return std::move(*this).status(); |
| 427 | } |
| 428 | return U(MoveValueUnsafe()); |
| 429 | } |
| 430 | |
| 431 | /// Cast the internally stored value to produce a new result or propagate the stored |
| 432 | /// error. |