@@ -60,7 +60,9 @@ pub enum Ipv6MulticastScope {
60
60
}
61
61
62
62
impl IpAddr {
63
- /// Returns true for the special 'unspecified' address (0.0.0.0 in IPv4, :: in IPv6).
63
+ /// Returns true for the special 'unspecified' address ([IPv4], [IPv6]).
64
+ /// [IPv4]: ../../std/net/struct.Ipv4Addr.html#method.is_unspecified
65
+ /// [IPv6]: ../../std/net/struct.Ipv6Addr.html#method.is_unspecified
64
66
#[ unstable( feature="ip" , issue="27709" ,
65
67
reason="recently added and depends on unstable Ipv4Addr.is_unspecified()" ) ]
66
68
pub fn is_unspecified ( & self ) -> bool {
@@ -70,7 +72,9 @@ impl IpAddr {
70
72
}
71
73
}
72
74
73
- /// Returns true if this is a loopback address (127.0.0.0/8 in IPv4, ::1 in IPv6).
75
+ /// Returns true if this is a loopback address ([IPv4], [IPv6]).
76
+ /// [IPv4]: ../../std/net/struct.Ipv4Addr.html#method.is_loopback
77
+ /// [IPv6]: ../../std/net/struct.Ipv6Addr.html#method.is_loopback
74
78
#[ unstable( feature="ip" , reason="recently added" , issue="27709" ) ]
75
79
pub fn is_loopback ( & self ) -> bool {
76
80
match * self {
@@ -79,7 +83,9 @@ impl IpAddr {
79
83
}
80
84
}
81
85
82
- /// Returns true if the address appears to be globally routable.
86
+ /// Returns true if the address appears to be globally routable ([IPv4], [IPv6]).
87
+ /// [IPv4]: ../../std/net/struct.Ipv4Addr.html#method.is_global
88
+ /// [IPv6]: ../../std/net/struct.Ipv6Addr.html#method.is_global
83
89
#[ unstable( feature="ip" , issue="27709" ,
84
90
reason="recently added and depends on unstable Ip{v4,v6}Addr.is_global()" ) ]
85
91
pub fn is_global ( & self ) -> bool {
@@ -89,7 +95,9 @@ impl IpAddr {
89
95
}
90
96
}
91
97
92
- /// Returns true if this is a multicast address (224.0.0.0/4 in IPv4, ff00::/8 in IPv6)
98
+ /// Returns true if this is a multicast address ([IPv4], [IPv6]).
99
+ /// [IPv4]: ../../std/net/struct.Ipv4Addr.html#method.is_multicast
100
+ /// [IPv6]: ../../std/net/struct.Ipv6Addr.html#method.is_multicast
93
101
#[ unstable( feature="ip" , reason="recently added" , issue="27709" ) ]
94
102
pub fn is_multicast ( & self ) -> bool {
95
103
match * self {
@@ -98,7 +106,9 @@ impl IpAddr {
98
106
}
99
107
}
100
108
101
- /// Returns true if this address is in a range designated for documentation.
109
+ /// Returns true if this address is in a range designated for documentation ([IPv4], [IPv6]).
110
+ /// [IPv4]: ../../std/net/struct.Ipv4Addr.html#method.is_documentation
111
+ /// [IPv6]: ../../std/net/struct.Ipv6Addr.html#method.is_documentation
102
112
#[ unstable( feature="ip" , issue="27709" ,
103
113
reason="recently added and depends on unstable Ipv6Addr.is_documentation()" ) ]
104
114
pub fn is_documentation ( & self ) -> bool {
0 commit comments