Def

Wraps a member function of the class.

Supports default arguments, typesafe variadic arguments, and python's keyword arguments.

Members

Aliases

args
alias args = Args!("", "", __traits(identifier, fn), "", Options)
Undocumented in source.
fn_t
alias fn_t = args.rem[0]
Undocumented in source.
fn_t
alias fn_t = typeof(&fn)
Undocumented in source.

Mixins

__anonymous
mixin _Def!(fn, args.pyname, fn_t, args.docstring)
Undocumented in source.

Parameters

fn

The member function to wrap.

Options

Optional parameters. Takes Docstring!(docstring), PyName!(pyname), and fn_t.

fn t

The type of the function. It is only useful to specify this if more than one function has the same name as this one. pyname: The name of the function as it will appear in Python. Defaults to fn's name in D docstring: The function's docstring. Defaults to "".

Meta