Documentation
Dlang.org
Expected.valueOr
expectations
Expected
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
Source
See Implementation
expectations
Expected
constructors
this
functions
error
hasValue
opAssign
opEquals
value
valueOr
Returns the expected value if present, or a default value otherwise.