Expected.valueOr

Returns the expected value if present, or a default value otherwise.

struct Expected(T, E = Exception)
inout(T)
valueOr
inout
(
inout(T) defaultValue
)
if (
!is(T == E) &&
!is(T == void)
)

Meta