Result.this

this(T error)

Construct a Result holding an error payload.

Parameters

errorvalue of exactly type E; implicit conversions are rejected so the alternatives can never be confused.
this(T value)

Construct a Result holding a success payload.

Parameters

valuevalue of exactly type V; implicit conversions are rejected so the alternatives can never be confused.