Skip to content

API reference ​

Module sparkles.reflection.kind

SymbolKindPurpose
TypeKindenumThe closed structural kinds: opaque, null_, boolean, character, signedInteger, unsignedInteger, floating, text, enumeration, pointer, sequence, associative, aggregate, sumType
typeKindOf!TtemplateThe one total ladder from a D type to its TypeKind
isScalarKind(kind)functionThe leaf kinds a value writer or query sink consumes directly

Module sparkles.reflection.member

SymbolKindPurpose
fieldCount!TenumDeclared fields, nested context pointer excluded
fieldType!(T, i)aliasDeclared type of field i
fieldIdentifier!(T, i)enumDeclared identifier of field i
isPropertyGetter!senumZero-argument @property getter returning non-void
isPublic!senumDeclared public or export
isConstReadable!(T, g)enumGetter g callable on a const view of T
propertyGetters!Talias seqPublic zero-argument @property getters, one per member name
hasPublicFields!TenumAt least one public declared field
valueLikeGetter!TaliasThe single scalar getter of a fieldless value type, or void
firstDuplicate(names)functionCTFE uniqueness check helper