obtainFeature

@safe
template obtainFeature () if (
__traits(isModule, M)
) {
@safe
static if(isFeature!M)
enum obtainFeature;
@safe
static if(!(isFeature!M))
enum obtainFeature;
}

Return Value

The Feature of a Module If the Modules does not contain a feature then a false is returned

Examples

// The obtainFeature of a module
   import tagion.behaviour.BehaviourUnittest;

   static assert(obtainFeature!(tagion.behaviour.BehaviourUnittest) ==
           Feature(
               "Some awesome feature should print some cash out of the blue", null));
   static assert(!obtainFeature!(tagion.behaviour.BehaviourFeature));