pegged v0.4.3 (2018-02-16T19:45:56Z)
Dub
Repo
TypeSubType.Match
pegged
examples
pattern
TypeSubType
Undocumented in source.
struct
TypeSubType
(U...)
template
Match (
T
...
) {
mixin
TypeFailure
!(
T
)
;
static if
(!(
T.length < U.length || !isSubtype!(T[0..U.length], U)
))
enum
successful
;
alias
Types
=
T
[
0
..
U
.
length
]
;
static if
(!(
T.length < U.length || !isSubtype!(T[0..U.length], U)
))
enum
begin
;
static if
(!(
T.length < U.length || !isSubtype!(T[0..U.length], U)
))
enum
end
;
alias
Rest
=
T
[
U
.
length
..$]
;
}
Members
Aliases
Rest
alias
Rest
=
T
[
U
.
length
..$]
Undocumented in source.
Types
alias
Types
=
T
[
0
..
U
.
length
]
Undocumented in source.
Manifest constants
begin
enum
begin
;
Undocumented in source.
end
enum
end
;
Undocumented in source.
successful
enum
successful
;
Undocumented in source.
Mixins
__anonymous
mixin
TypeFailure
!(
T
)
Undocumented in source.
Meta
Source
See Implementation
pegged
examples
pattern
TypeSubType
templates
Match