expected ~master (2021-10-11T18:48:43Z)
Dub
Repo
Expected.hasValue
expected
Expected
Checks if
Expected
has value
bool
hasValue
[@property getter]
struct
Expected
(T, E = string, Hook = Abort)
@
property
const
static if
(
!is(T == void)
)
static if
(
!isChecked!Hook
)
bool
hasValue
()
(
)
if
(
!
is
(
E
==
void
) &&
(
isVoidValueEnabled
!
Hook
||
!
is
(
T
==
void
)
)
)
bool
hasValue
[@property getter]
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
Checks if Expected has value