pyd v0.14.3 (2022-03-12T16:12:50Z)
Home
Dub
Repo
minNumArgs_impl
pyd
func_wrap
Undocumented in source.
template
minNumArgs_impl (
alias
fn
fnT
) {
alias
Params
=
ParameterTypeTuple
!(
fnT
)
;
template
WorkaroundParameterDefaults
(func...)
via
import
pyd
.
util
.
typeinfo
:
WorkaroundParameterDefaults
;
;
alias
Defaults
=
WorkaroundParameterDefaults
!
fn
;
alias
vstyle
=
variadicFunctionStyle
!
fn
;
static if
(
Params.length == 0
)
enum
res
;
static if
(!(
Params.length == 0
))
static if
(
vstyle == Variadic.typesafe
)
enum
res
;
static if
(!(
Params.length == 0
))
static if
(!(
vstyle == Variadic.typesafe
))
size_t
count_nondefault
();
static if
(!(
Params.length == 0
))
static if
(!(
vstyle == Variadic.typesafe
))
enum
res
;
}
Members
Aliases
Defaults
alias
Defaults
=
WorkaroundParameterDefaults
!
fn
Undocumented in source.
Params
alias
Params
=
ParameterTypeTuple
!(
fnT
)
Undocumented in source.
vstyle
alias
vstyle
=
variadicFunctionStyle
!
fn
Undocumented in source.
Functions
count_nondefault
size_t
count_nondefault
()
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
res
enum
res
;
Undocumented in source.
res
enum
res
;
Undocumented in source.
res
enum
res
;
Undocumented in source.
Meta
Source
See Implementation
pyd
func_wrap
functions
PydCallable_AsDelegate
PydWrappedFunc_Ready
applyPyTupleToAlias
applyPyTupleToDelegate
arrangeNamedArgs
constnessMatch2
dg_wrapper
gensym
pyApplyToAlias
pyApplyToDelegate
setWrongArgsError
supportsNArgs
tattrs_to_string
manifest constants
StrippedFunctionAttributes
structs
TupleComposer
templates
StripFunctionAttributes
fn_to_dg
fn_to_dgT
funcTarget
function_wrap
getparams
hasFunctionAttrs
isConstFunction
isImmutableFunction
isMutableFunction
isSharedFunction
isWildcardFunction
maxArgs
memberfunc_to_func
method_dgwrap
method_wrap
minArgs
minNumArgs_impl
wrapped_func_call