phobos ~master (2024-10-03T07:50:27Z)
Dub
Repo
tryMatch.tryMatch
std
sumtype
tryMatch
The actual
tryMatch
function.
template
tryMatch
(handlers...)
version(D_Exceptions)
ref
auto ref
tryMatch
(
SumTypes
...
)
(
auto
ref
SumTypes
args
)
if
(
allSatisfy
!(
isSumType
,
SumTypes
) &&
args.length
> 0
)
Parameters
args
SumTypes
One or more
SumType
objects.
Meta
Source
See Implementation
std
sumtype
tryMatch
functions
tryMatch
The actual tryMatch function.