fieldsOf

This is a compile-time recursive function that wil generate multiple versions of itself in order to discover the full structure of the struct type T.

The struct will be updated via ref (via reference) and values will be assigned to it via the provider p.

In order for naming to be hierachial a root value is passed along as an auxillary piece of data

Names will always be fieldName and if in a struct then structFieldName.fieldName and so on...

  1. void fieldsOf(T s, Provider p)
  2. void fieldsOf(T s, Provider p, string r)
    package
    void
    fieldsOf
    (
    T
    )
    (
    ref T s
    ,,
    string r
    )
    if (
    isStructType!(T)()
    )

Parameters

s T

the structure

p Provider

the provider

r string

the root value

Meta