mirror.meta

This module provides the template metaprogramming variant of compile-time reflection, allowing client code to do type-level computations on the contents of a D module.

Members

Enums

isClass
eponymoustemplate isClass(T)

Usable as a predicate to std.meta.Filter

isEnum
eponymoustemplate isEnum(T)

Usable as a predicate to std.meta.Filter

isInterface
eponymoustemplate isInterface(T)

Usable as a predicate to std.meta.Filter

isOOP
eponymoustemplate isOOP(T)

If a type is a class or an interface. Usable as a predicate to std.meta.Filter

isStruct
eponymoustemplate isStruct(T)

Usable as a predicate to std.meta.Filter

Structs

Function
struct Function(alias M, alias F, string I = __traits(identifier, F))

A function.

Variable
struct Variable(T)

A global variable.

Templates

Module
template Module(string moduleName)

Compile-time information on a D module.

Meta