is_v6
Checks whether an IP address has version number 6.
is_v6(x:ip) -> bool
Description
Section titled “Description”The ipv6
function checks whether the version number of a given IP address x
is 6.
Examples
Section titled “Examples”Check if an IP is IPv6
Section titled “Check if an IP is IPv6”from { x: 1.2.3.4.is_v6(), y: ::1.is_v6(),}
{ x: false, y: true,}