OxL Reference

method IpAddr.isV6

Whether the address is IPv6.

Example:

oxl✓ checked in CI
use std.net { IpAddr }

fn main() io {
  print("{IpAddr.loopbackV6().isV6()} {IpAddr.loopback().isV6()}")
}
Output
true false
pub(api) fn isV6() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/net/net.oxl:205

See also