ipv4

Macro ipv4 

Source
ipv4!() { /* proc-macro */ }
Expand description

Generate an IPv4 address from the standard textual representation

§Syntax

This macro works as a function which take only one argument: the string representation of an IP address

§Example


assert_eq!(ipv4!("192.168.1.5"), std::net::Ipv4Addr::new(192, 168, 1, 5));