SetterAnnotation

Annotation used to mark a member to be called or set (in case of fields), with args passed to setter.

Note: if an overloaded method is annotated with Setter, the method from overload set that matches argument list in Setter annotation will be called.

  1. struct SetterAnnotation(Args...)
    @safe
    struct SetterAnnotation (
    Args...
    ) {}
  2. auto setter(Args args)

Constructors

this
this(Args args)

Constructor accepting a list of arguments, that will be passed to method, or set to a field.

Members

Variables

args
Args args;

Arguments passed to method

Parameters

Args

the argument types of arguments passed to method

Meta