pyd.func_wrap

Mostly internal utilities.

Members

Functions

dg_wrapper
auto dg_wrapper(T t, Fn fn)

This template function converts a pointer to a member function into a delegate.

supportsNArgs
bool supportsNArgs(size_t n)

Determines at runtime whether the function can be given n arguments.

Templates

fn_to_dg
template fn_to_dg(Fn)

This template converts a function type into an equivalent delegate type.

getparams
template getparams(alias fn, string pt_alias, string pd_alias)

Get the parameters of function as a string.

maxArgs
template maxArgs(alias fn, fn_t = typeof(&fn))

Finds the maximum number of arguments a given function may be provided and/or whether the function has a maximum number of arguments.

minArgs
template minArgs(alias fn, fnT = typeof(&fn))

Finds the minimal number of arguments a given function needs to be provided

Meta