vson.meta.traits

Extensions to std.traits module of Phobos. Some may eventually make it into Phobos, some are dirty hacks that work only for vibe.d

Members

Functions

Tgen
T Tgen()
Undocumented in source. Be warned that the author may not have intended to support it.
areConvertibleTo
bool areConvertibleTo()

Tests if a Group of types is implicitly convertible to a Group of target types.

Templates

baseInterface
template baseInterface(T)

Deduces single base interface for a type. Multiple interfaces will result in compile-time error.

isNonStaticMember
template isNonStaticMember(T, string M)

Tests if a member requires this to be used.

isOpApplyDg
template isOpApplyDg(DG, TKEY, TVALUE)

Test if the type DG is a correct delegate for an opApply where the key/index is of type TKEY and the value of type TVALUE.

isPropertyGetter
template isPropertyGetter(T...)

Checks if given type is a getter function type

isPropertySetter
template isPropertySetter(T...)

Checks if given type is a setter function type

isPublicMember
template isPublicMember(T, string M)

Tests if the protection of a member is public.

isRWField
template isRWField(T, string M)

Determines if a member is a public, non-static, de-facto data field.

isRWPlainField
template isRWPlainField(T, string M)

Determins if a member is a public, non-static data field.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig, Михаил Страшун