Documentation
Dlang.org
Expected.opCast
expected
Expected
Implicit conversion to bool.
bool
opCast
()
bool
opCast
()
struct
Expected
(T, E = string, Hook = Abort)
bool
opCast
(
T
)
(
)
if
(
is
(
T
==
bool
)
)
if
(
!
is
(
E
==
void
) &&
(
isVoidValueEnabled
!
Hook
||
!
is
(
T
==
void
)
)
)
Return Value
Type:
bool
true
if there is no error set,
false
otherwise.
Meta
Source
See Implementation
expected
Expected
constructors
this
functions
empty
error
front
hasError
hasValue
opAssign
opCast
opEquals
popFront
toHash
value
Implicit conversion to bool.