SoA.fieldIndex

Given a field name, returns its index. Callable at compile-time.

struct SoA(T, alias Allocator = from!`std.experimental.allocator.gc_allocator`.GCAllocator)
nothrow
enum size_t fieldIndex(string fieldName);

Meta