Tracking issue for IP constructors · Issue #44582 · rust-lang/rust (original) (raw)
Tracking issue for IP address convenience constructors, added in #44395, modified in #52872.
impl Ipv4Addr { pub const LOCALHOST: Self = Ipv4Addr::new(127, 0, 0, 1); pub const UNSPECIFIED: Self = Ipv4Addr::new(0, 0, 0, 0); pub const BROADCAST: Self = Ipv4Addr::new(255, 255, 255, 255); }
impl Ipv6Addr { pub const LOCALHOST: Self = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); pub const UNSPECIFIED: Self = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); }