method IpAddr.isV6
Whether the address is IPv6.
Example:
use std.net { IpAddr }
fn main() io {
print("{IpAddr.loopbackV6().isV6()} {IpAddr.loopback().isV6()}")
}Output
true false
pub(api) fn isV6() -> boolSince. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/net/net.oxl:205