autoformat ~master (2021-06-01T21:25:09Z)
Dub
Repo
restrictTo
my
sumtype
Restrict matching in a sumtype to a bundle of types.
template
restrictTo
(Args...)
ref
auto ref
restrictTo
(
T
)
(
auto
ref
T
value
)
if
(
IndexOf
!(
T
,
Types
) >= 0
)
if
(
Args.length
>= 1
)
Members
Aliases
Types
alias
Types
=
Args
[
0
..$ -
1
]
Undocumented in source.
fun
alias
fun
=
Args
[$ -
1
]
Undocumented in source.
Functions
restrictTo
auto ref
restrictTo
(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
my
sumtype
aliases
SumTypeFromReturn
functions
contains
ignore
templates
AllReturn
restrictTo
Restrict matching in a sumtype to a bundle of types.