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