Tuple.rename

* Overload of _rename that takes an associative array * translate as a template parameter, where the keys are * either the names or indices of the members to be changed * and the new names are the corresponding values. * Every key in translate must be the name of a member of the * tuple. * The same rules for empty strings apply as for the variadic * template overload of _rename.

  1. ref rename()
  2. ref rename()
    struct Tuple
    ref
    rename
    (
    alias translate
    )
    ()
    if (
    is(typeof(translate) : V[K],
    V
    K
    ) &&
    isSomeString!V
    &&
    (
    isSomeString!K ||
    is(K : size_t)
    )
    )

Meta