OxL Reference

method IpAddr.isV4

Whether the address is IPv4.

Example:

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

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

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also