expected ~master (2021-10-11T18:48:43Z)
Dub
Repo
Expected.opCast
expected
Expected
Implicit conversion to bool.
bool
opCast
()
struct
Expected
(T, E = string, Hook = Abort)
const
static if
(
!isChecked!Hook
)
bool
opCast
(
T
)
(
)
if
(
is
(
T
==
bool
)
)
if
(
!
is
(
E
==
void
) &&
(
isVoidValueEnabled
!
Hook
||
!
is
(
T
==
void
)
)
)
bool
opCast
()
Return Value
Type:
bool
true
if there is no error set,
false
otherwise.
Meta
Source
See Implementation
expected
Expected
constructors
this
destructors
~this
functions
opAssign
opCast
opEquals
popFront
toHash
postblits
this(this)
properties
empty
error
front
hasError
hasValue
value
Implicit conversion to bool.