Address.toV6

Get the address as an IPv6 address.

This method doesn't convert the address, so the address should be already an IPv6 one.

struct Address
ref inout @nogc nothrow pure @safe
inout(Address6)
toV6
()

Return Value

Type: inout(Address6)

IPv6 address.

Precondition: This is an IPv6 address.

Examples

auto expected = Address6.loopback;
assert(Address(expected).toV6() == expected);

Meta