We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 459b1a4 commit cd487dbCopy full SHA for cd487db
src/libstd/net/ip.rs
@@ -83,6 +83,10 @@ impl Ipv4Addr {
83
}
84
85
/// Returns true for the special 'unspecified' address (0.0.0.0).
86
+ ///
87
+ /// This property is defined in _UNIX Network Programming, Second Edition_,
88
+ /// W. Richard Stevens, p. 891; see also [ip7]
89
+ /// [ip7][http://man7.org/linux/man-pages/man7/ip.7.html]
90
pub fn is_unspecified(&self) -> bool {
91
self.inner.s_addr == 0
92
0 commit comments