Function ipv6

Source
pub fn ipv6(ip: &str) -> bool
Expand description

Checks whether the given string is a valid IPv6 address.

ยงExample

if dator::ipv6("fe80::") {
    // "fe80::" is a valid IPv6
}
if !dator::ipv6("1.1.1.1") {
    // 1.1.1.1 is an invalid IPv6
}