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