Property

Wraps a property of the class.

Members

Aliases

args
alias args = Args!("", "", __traits(identifier, fn), "", Options)
Undocumented in source.

Mixins

__anonymous
mixin _Property!(fn, args.pyname, args.mode, args.docstring)
Undocumented in source.

Parameters

fn

The property to wrap.

Options

Optional parameters. Takes Docstring!(docstring), PyName!(pyname), and Mode!(mode) pyname: The name of the property as it will appear in Python. Defaults to fn's name in D. mode: specifies whether this property is readable, writable. possible values are "r", "w", "rw", and "" (in the latter case, automatically determine which mode to use based on availability of getter and setter forms of fn). Defaults to "". docstring: The function's docstring. Defaults to "".

Meta