ResultUnitUnwrap<E> extension
Provides the ~
operator to Result type values that hold ()
to provide
an ergonomic way to unwrap Result type values used strictly for error handling.
- on
-
- Result<
(), E>
- Result<
Operators
-
operator ~(
) → () - Shortcut to call Result.unwrap().