method IpAddr.isV4
Whether the address is IPv4.
Example:
use std.net { IpAddr }
fn main() io {
print("{IpAddr.loopback().isV4()}")
}Вывод
true
pub(api) fn isV4() -> boolС версии. 1.0.0-beta
Возвращает
bool
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/net/net.oxl:219