phobos-next v0.3.9 (2020-08-07T21:50:30Z)
Home
Dub
Repo
Expected.this
nxt
expected
Expected
Construct from unexpected value
unexpectedValue.
this
(T expectedValue)
this
(Unexpected!E unexpectedValue)
struct
Expected
(T, E = Exception)
@
trusted
this
(
Unexpected
!
E
unexpectedValue
)
if
(
!
isInstanceOf
!(
Unexpected
,
T
) &&
!
is
(
T
==
void
)
)
Meta
Source
See Implementation
nxt
expected
Expected
constructors
this
functions
apply
empty
front
hasExpectedValue
opAssign
popFront
valueOr
Construct from unexpected value unexpectedValue.