TypeIntrospect

Undocumented in source.
class TypeIntrospect {}

Members

Static functions

getInfoFor
TypeField getInfoFor()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import fluent.asserts;

struct A
{
    @MainValue
    int b;
}

auto info = TypeIntrospect.getInfoFor!A;
info.name.should.equal("A");
info.as!StructSerialiseInfo.fields.length.should.equal(1);

BasicSerialiseInfo field = info.as!StructSerialiseInfo.fields["b"].as!BasicSerialiseInfo;
field.should.not.beNull();
field.type.should.equal(typeid(int));
field.flags.should.equal(TypeFlags.IsMainValue);

Meta