Return value if this is the Success!T instance, otherwise throw Exception in the Failure!T instance.
Return Right!(Exception, T) value if this is the Success!T instance, otherwise Left!(Exception, T) value.
Return true if this is the Failure!T instance, otherwise false.
Return true if this is the Success!T instance, otherwise false.
A factory method to create Trial(T) instance.
A interface to represent whether a value or an exception.