Automatically unwraps the Result of another conversion.
Automatically unwraps the Result of another conversion.
This method MUST be called within a conversion block from this Convert instance.
the type of the Result[T]
the result of another conversion
the result of the other conversion, not wrapped as a Result
An object containing an implicit conversion from
Result[T]
toT
. The implicit conversion allows the automatic unwrapping of Results, without explicitly calling unwrap.USE THIS IMPLICIT CONVERSION AT YOUR OWN RISK
This implicit conversion can improve code readability; however, it should be used with care. As with all implicit conversions, it may be difficult to tell when it is applied by the compiler, leading to unexpected behavior which is difficult to debug.
Additionally, because unwrap MUST be called within a conversion block, this implicit conversion MUST be called within a conversion block as well. However, if imported in the wrong scope, the compiler may insert a call to this implicit conversion outside of any conversion block. Use this implicit conversion with care.