ValueType.fromString

Creates a value type from its name.

The name is one of string, file, dir, int, or choices separated by |, e.g., json|yaml.

struct ValueType
static @safe
fromString
(
string name
)

Parameters

name string

Name of the type.

Throws

AssertError if the name is not a known type and not a list of at least two non-empty choices.