aurorafw.stdx.traits

Extras to std.traits

This file defines extra functions to std.traits.

Public Imports

std.traits
public import std.traits;

Members

Templates

CanImport
template CanImport(string moduleName)

Trait to verify if a module can be imported

MatchReturnType
template MatchReturnType(funcs...)

Match functions return type

ModuleContainsSymbol
template ModuleContainsSymbol(string moduleName, string symbolName)

Check if module contains a symbol

TypesOf
template TypesOf(Symbols...)

Get's an AliasSeq of types from the given arguments

isNullSettable
template isNullSettable(alias T)

Checks if type is settable to null

isNullTestable
template isNullTestable(alias T)

Checks if type is null testable

isNullType
template isNullType(alias T)

Checks if type is typeof(null)

isOf
template isOf(ab...)

Checks if a certain literal or function return type is equal. Basically the same as is(... == ...) but resolves the function return type.

isSame
template isSame(alias lhs, alias rhs)

Checks if two symbols are the same in compile-time

isVersion
template isVersion(string ver)

Detect version identifiers

Meta

Date

Date: 2018-2019

Authors

Luís Ferreira <luis@aurorafoss.org>

License

GNU Lesser General Public License (Version 3, 29 June 2007)