phobos-next v0.4.6 (2022-11-25T12:27:21Z)
Home
Dub
Repo
Expected.opEquals
nxt
expected
Expected
Undocumented in source.
struct
Expected
(T, E = Exception)
const
@
trusted
=>
_ok
==
rhs._ok
&&
(
_ok
?
_expectedValue
==
rhs._expectedValue
:
_unexpectedValue
==
rhs._unexpectedValue
)
bool
opEquals
(
const
scope
typeof
(this)
rhs
)
if
(
!
isInstanceOf
!(
Unexpected
,
T
) &&
!
is
(
T
==
void
)
)
Meta
Source
See Implementation
nxt
expected
Expected
constructors
this
functions
apply
empty
hasExpectedValue
opAssign
opEquals
popFront
valueOr
properties
front