Tag.rename

Creates a NamedTag maintaing the tag's properties.

class Tag
abstract pure nothrow @safe
rename
(
string
)

Examples

auto t = new Float(22);
auto named = t.rename("float");
assert(cast(NamedTag)named);
assert(named.name == "float");
assert(named == 22);

Meta