CanImport

Trait to verify if a module can be imported

template CanImport (
string moduleName
) {}

Members

Manifest constants

CanImport
enum CanImport;
Undocumented in source.

Parameters

moduleName

module to validate import

Examples

assertTrue(CanImport!"std.stdio");
// check for static eval
static assert(CanImport!"std.stdio");

assertFalse(CanImport!"this.module.doesnt.exists.dont.create.it");

Meta