setter

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...)
  2. auto setter(Args args)
    @safe
    setter
    (
    Args...
    )
    (
    Args args
    )

Parameters

Args

the argument types of arguments passed to method

Meta