universal v0.1.1 (2020-08-30T22:03:12Z)
Dub
Repo
matchAny.tryPattern
universal
core
match
matchAny
matchAny
Undocumented in source.
template
matchAny
(A...)
template
tryPattern (
uint
i
) {
static if
(
__traits(compiles, apply!(funcs[i])(A.init))
)
auto
pattern
(A a);
alias
tryPattern
=
TypeTuple
!(
names
[
i
],
pattern
)
;
alias
tryPattern
=
pattern
;
alias
tryPattern
=
TypeTuple
!()
;
}
Members
Aliases
tryPattern
alias
tryPattern
=
TypeTuple
!(
names
[
i
],
pattern
)
Undocumented in source.
tryPattern
alias
tryPattern
=
TypeTuple
!()
Undocumented in source.
tryPattern
alias
tryPattern
=
pattern
Undocumented in source.
Functions
pattern
auto
pattern
(A a)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
universal
core
match
matchAny
matchAny
aliases
funcs
names
functions
matchAny
templates
tryPattern