There\'s the build_type template defined in the lib.nim library.
build_type
lib.nim
template build_type*[T](_: type[T]): T = T.build()