phobos-next ~master (2024-03-19T05:49:32Z)
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
(
!
is
(
T
==
Unexpected
!(
_
),
_
) &&
!
is
(
T
==
void
)
)
Meta
Source
See Implementation
nxt
expected
Expected
constructors
this
functions
apply
empty
hasExpectedValue
opAssign
opEquals
popFront
valueOr
properties
front