openmethods v1.3.0 (2020-04-18T08:13:13Z)
Dub
Repo
Function
bolts
reflection
metafunction
Create a Function meta-object from function Fun,
template
Function
(Props...)
alias
Function
(
alias
Fun
,
string
Source
=
__traits
(
identifier
,
Fun
),
int
Index
=
0
)
=
Function
!(
Fun
,
functionAttributes
!
Fun
| (
__traits
(
isStaticFunction
,
Fun
) ?
ExtendedFunctionAttribute
.
static_
:
0
),
Type
!(
ReturnType
!
Fun
,
"std.traits.ReturnType!(%s)"
.
format
(
Source
)),
__traits
(
identifier
,
Fun
),
Index
,
reflectParameterList
!(
Fun
,
Source
),
UDAList
!(
makeUDAs
!(
Source
,
0
,
__traits
(
getAttributes
,
Fun
))))
alias
Function
(
alias
Fun
,
string
Aggregate
,
string
Member
,
int
Index
)
=
Function
!(
Fun
,
`__traits(getOverloads, %s, "%s")[%d]`
.
format
(
Aggregate
,
Member
,
Index
),
Index
)
alias
Function
(
alias
Fun
,
string
Aggregate
,
string
Member
,
int
Index
)
=
Function
!(
Fun
, `__traits(getOverloads, %s, "%s")[%d]`.
format
(
Aggregate
,
Member
,
Index
),
Index
)
Meta
Source
See Implementation
bolts
reflection
metafunction
aliases
PDV
enums
subMixture
subMixtureArray
mixin templates
mixtureFromArray
templates
Function
Parameter
ParameterAttribute
ParameterDefaultValue
ParameterList
UDAList
makeUDAs
reflectParameterList
Create a Function meta-object from function Fun,