CallbackFactoryAnnotation

Annotation that specifies a delegate to be used to instantiate component.

  1. struct CallbackFactoryAnnotation(Z, Dg, Args...)
    @safe
    struct CallbackFactoryAnnotation (
    Z
    Dg
    Args...
    ) if (
    (
    is(Dg == Z delegate
    (
    RCIAllocator
    ,
    Locator!()
    ,
    Args
    )
    ) ||
    is(Dg == Z function
    (
    RCIAllocator
    ,
    Locator!()
    ,
    Args
    )
    )
    )
    ) {}
  2. auto fact(T delegate(RCIAllocator, Locator!(), Args) dg, Args args)
  3. auto fact(T function(RCIAllocator, Locator!(), Args) dg, Args args)

Constructors

this
this(Dg dg, Args args)

Constructor accepting a factory delegate, and it's arguments.

Members

Variables

args
Args args;

Arguments that can be passed to delegate.

dg
Dg dg;

Delegate that is used to create component

Parameters

Z

the type of component that will be returned by the delegate

Args

type tuple of args that can be passed to delegate.

Meta