Function Domain.fromSafeString

Construct an instance of a Domain from a previously validated string

static inout(Domain) fromSafeString (
  inout(char)[] v
) pure nothrow @nogc @safe;

This method will use v as the string stored in the domain, after validating it. Failing validation is a programming error. As a result, this method does not allocate.

Note that domains always end with a '.', and cannot be empty.

Parameters

NameDescription
v The string to store in the Domain