phobos-next ~master (2022-05-18T09:58:38.2169964)
Dub
Repo
Expected.this
nxt
expected
Expected
Construct from expected value
expectedValue.
this
(T expectedValue)
struct
Expected
(T, E = Exception)
@
trusted
this
()
(
auto
ref
T
expectedValue
)
if
(
!
isInstanceOf
!(
Unexpected
,
T
) &&
!
is
(
T
==
void
)
)
this
(Unexpected!E unexpectedValue)
Meta
Source
See Implementation
nxt
expected
Expected
constructors
this
functions
apply
hasExpectedValue
opAssign
popFront
valueOr
properties
empty
front
Construct from expected value expectedValue.