restrictTo

Restrict matching in a sumtype to a bundle of types.

template restrictTo(Args...)
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