Struct CallbackFactoryAnnotation

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

struct CallbackFactoryAnnotation(Z, Dg, Args...)
  
if (is(Dg == Z delegate(IAllocator, Locator!(), Args)) || is(Dg == Z function(IAllocator, Locator!(), Args)));

Constructors

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

Fields

NameTypeDescription
args Tuple!Args
dg Dg

Parameters

NameDescription
Z the type of component that will be returned by the delegate
Args type tuple of args that can be passed to delegate.