Discharges this Tristate
to an Option
using the specified default for the Unspecified
case.
Discharges this Tristate
to an Option
using the specified default for the Unspecified
case.
Present(a)
goes to Some(a)
and Absent
goes to None
.
An optional value.
A
Tristate[A]
will either be a wrappedA
instance (Present[A]
), an explicit lack of an underlyingA
instance (Absent
), or an implicit lack of an underlyingA
instance (Unspecified
).