Remove explicit links to true and false in ip.rs

This commit is contained in:
Joshua Nelson 2020-09-01 23:33:44 -04:00
parent e36e4bd0f7
commit cafab51b29

View File

@ -140,8 +140,6 @@ impl IpAddr {
/// See the documentation for [`Ipv4Addr::is_unspecified()`] and /// See the documentation for [`Ipv4Addr::is_unspecified()`] and
/// [`Ipv6Addr::is_unspecified()`] for more details. /// [`Ipv6Addr::is_unspecified()`] for more details.
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -163,8 +161,6 @@ impl IpAddr {
/// See the documentation for [`Ipv4Addr::is_loopback()`] and /// See the documentation for [`Ipv4Addr::is_loopback()`] and
/// [`Ipv6Addr::is_loopback()`] for more details. /// [`Ipv6Addr::is_loopback()`] for more details.
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -186,8 +182,6 @@ impl IpAddr {
/// See the documentation for [`Ipv4Addr::is_global()`] and /// See the documentation for [`Ipv4Addr::is_global()`] and
/// [`Ipv6Addr::is_global()`] for more details. /// [`Ipv6Addr::is_global()`] for more details.
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -210,8 +204,6 @@ impl IpAddr {
/// See the documentation for [`Ipv4Addr::is_multicast()`] and /// See the documentation for [`Ipv4Addr::is_multicast()`] and
/// [`Ipv6Addr::is_multicast()`] for more details. /// [`Ipv6Addr::is_multicast()`] for more details.
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -233,8 +225,6 @@ impl IpAddr {
/// See the documentation for [`Ipv4Addr::is_documentation()`] and /// See the documentation for [`Ipv4Addr::is_documentation()`] and
/// [`Ipv6Addr::is_documentation()`] for more details. /// [`Ipv6Addr::is_documentation()`] for more details.
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -258,8 +248,6 @@ impl IpAddr {
/// Returns [`true`] if this address is an [`IPv4` address], and [`false`] /// Returns [`true`] if this address is an [`IPv4` address], and [`false`]
/// otherwise. /// otherwise.
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [`false`]: ../../std/primitive.bool.html
/// [`IPv4` address]: IpAddr::V4 /// [`IPv4` address]: IpAddr::V4
/// ///
/// # Examples /// # Examples
@ -278,8 +266,6 @@ impl IpAddr {
/// Returns [`true`] if this address is an [`IPv6` address], and [`false`] /// Returns [`true`] if this address is an [`IPv6` address], and [`false`]
/// otherwise. /// otherwise.
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [`false`]: ../../std/primitive.bool.html
/// [`IPv6` address]: IpAddr::V6 /// [`IPv6` address]: IpAddr::V6
/// ///
/// # Examples /// # Examples
@ -376,7 +362,6 @@ impl Ipv4Addr {
/// This property is defined in _UNIX Network Programming, Second Edition_, /// This property is defined in _UNIX Network Programming, Second Edition_,
/// W. Richard Stevens, p. 891; see also [ip7]. /// W. Richard Stevens, p. 891; see also [ip7].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [ip7]: http://man7.org/linux/man-pages/man7/ip.7.html /// [ip7]: http://man7.org/linux/man-pages/man7/ip.7.html
/// ///
/// # Examples /// # Examples
@ -397,7 +382,6 @@ impl Ipv4Addr {
/// ///
/// This property is defined by [IETF RFC 1122]. /// This property is defined by [IETF RFC 1122].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 1122]: https://tools.ietf.org/html/rfc1122 /// [IETF RFC 1122]: https://tools.ietf.org/html/rfc1122
/// ///
/// # Examples /// # Examples
@ -421,7 +405,6 @@ impl Ipv4Addr {
/// - 172.16.0.0/12 /// - 172.16.0.0/12
/// - 192.168.0.0/16 /// - 192.168.0.0/16
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 1918]: https://tools.ietf.org/html/rfc1918 /// [IETF RFC 1918]: https://tools.ietf.org/html/rfc1918
/// ///
/// # Examples /// # Examples
@ -451,7 +434,6 @@ impl Ipv4Addr {
/// ///
/// This property is defined by [IETF RFC 3927]. /// This property is defined by [IETF RFC 3927].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 3927]: https://tools.ietf.org/html/rfc3927 /// [IETF RFC 3927]: https://tools.ietf.org/html/rfc3927
/// ///
/// # Examples /// # Examples
@ -490,8 +472,6 @@ impl Ipv4Addr {
/// - addresses reserved for networking devices benchmarking (see /// - addresses reserved for networking devices benchmarking (see
/// [`Ipv4Addr::is_benchmarking()`]) /// [`Ipv4Addr::is_benchmarking()`])
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [`false`]: ../../std/primitive.bool.html
/// [ipv4-sr]: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml /// [ipv4-sr]: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
/// ///
/// # Examples /// # Examples
@ -564,7 +544,6 @@ impl Ipv4Addr {
/// Returns [`true`] if this address is part of the Shared Address Space defined in /// Returns [`true`] if this address is part of the Shared Address Space defined in
/// [IETF RFC 6598] (`100.64.0.0/10`). /// [IETF RFC 6598] (`100.64.0.0/10`).
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 6598]: https://tools.ietf.org/html/rfc6598 /// [IETF RFC 6598]: https://tools.ietf.org/html/rfc6598
/// ///
/// # Examples /// # Examples
@ -590,7 +569,6 @@ impl Ipv4Addr {
/// - `192.0.0.9/32` is the "Port Control Protocol Anycast" (see [IETF RFC 7723]) /// - `192.0.0.9/32` is the "Port Control Protocol Anycast" (see [IETF RFC 7723])
/// - `192.0.0.10/32` is used for NAT traversal (see [IETF RFC 8155]) /// - `192.0.0.10/32` is used for NAT traversal (see [IETF RFC 8155])
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 6890]: https://tools.ietf.org/html/rfc6890 /// [IETF RFC 6890]: https://tools.ietf.org/html/rfc6890
/// [IETF RFC 7600]: https://tools.ietf.org/html/rfc7600 /// [IETF RFC 7600]: https://tools.ietf.org/html/rfc7600
/// [IETF RFC 7723]: https://tools.ietf.org/html/rfc7723 /// [IETF RFC 7723]: https://tools.ietf.org/html/rfc7723
@ -617,7 +595,6 @@ impl Ipv4Addr {
/// network devices benchmarking. This range is defined in [IETF RFC 2544] as `192.18.0.0` /// network devices benchmarking. This range is defined in [IETF RFC 2544] as `192.18.0.0`
/// through `198.19.255.255` but [errata 423] corrects it to `198.18.0.0/15`. /// through `198.19.255.255` but [errata 423] corrects it to `198.18.0.0/15`.
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 2544]: https://tools.ietf.org/html/rfc2544 /// [IETF RFC 2544]: https://tools.ietf.org/html/rfc2544
/// [errata 423]: https://www.rfc-editor.org/errata/eid423 /// [errata 423]: https://www.rfc-editor.org/errata/eid423
/// ///
@ -641,7 +618,6 @@ impl Ipv4Addr {
/// broadcast address `255.255.255.255`, but this implementation explicitly excludes it, since /// broadcast address `255.255.255.255`, but this implementation explicitly excludes it, since
/// it is obviously not reserved for future use. /// it is obviously not reserved for future use.
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 1112]: https://tools.ietf.org/html/rfc1112 /// [IETF RFC 1112]: https://tools.ietf.org/html/rfc1112
/// ///
/// # Warning /// # Warning
@ -673,7 +649,6 @@ impl Ipv4Addr {
/// Multicast addresses have a most significant octet between 224 and 239, /// Multicast addresses have a most significant octet between 224 and 239,
/// and is defined by [IETF RFC 5771]. /// and is defined by [IETF RFC 5771].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 5771]: https://tools.ietf.org/html/rfc5771 /// [IETF RFC 5771]: https://tools.ietf.org/html/rfc5771
/// ///
/// # Examples /// # Examples
@ -694,7 +669,6 @@ impl Ipv4Addr {
/// ///
/// A broadcast address has all octets set to 255 as defined in [IETF RFC 919]. /// A broadcast address has all octets set to 255 as defined in [IETF RFC 919].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 919]: https://tools.ietf.org/html/rfc919 /// [IETF RFC 919]: https://tools.ietf.org/html/rfc919
/// ///
/// # Examples /// # Examples
@ -718,7 +692,6 @@ impl Ipv4Addr {
/// - 198.51.100.0/24 (TEST-NET-2) /// - 198.51.100.0/24 (TEST-NET-2)
/// - 203.0.113.0/24 (TEST-NET-3) /// - 203.0.113.0/24 (TEST-NET-3)
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 5737]: https://tools.ietf.org/html/rfc5737 /// [IETF RFC 5737]: https://tools.ietf.org/html/rfc5737
/// ///
/// # Examples /// # Examples
@ -1125,7 +1098,6 @@ impl Ipv6Addr {
/// ///
/// This property is defined in [IETF RFC 4291]. /// This property is defined in [IETF RFC 4291].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
/// ///
/// # Examples /// # Examples
@ -1146,7 +1118,6 @@ impl Ipv6Addr {
/// ///
/// This property is defined in [IETF RFC 4291]. /// This property is defined in [IETF RFC 4291].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
/// ///
/// # Examples /// # Examples
@ -1171,9 +1142,6 @@ impl Ipv6Addr {
/// - link-local and unique local unicast addresses /// - link-local and unique local unicast addresses
/// - interface-, link-, realm-, admin- and site-local multicast addresses /// - interface-, link-, realm-, admin- and site-local multicast addresses
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [`false`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -1200,8 +1168,6 @@ impl Ipv6Addr {
/// ///
/// [IETF RFC 4193]: https://tools.ietf.org/html/rfc4193 /// [IETF RFC 4193]: https://tools.ietf.org/html/rfc4193
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -1234,8 +1200,6 @@ impl Ipv6Addr {
/// addresses such as `fe80:0:0:1::` or `fe81::` as unicast link-local addresses for example. /// addresses such as `fe80:0:0:1::` or `fe81::` as unicast link-local addresses for example.
/// If you need a less strict validation use [`Ipv6Addr::is_unicast_link_local()`] instead. /// If you need a less strict validation use [`Ipv6Addr::is_unicast_link_local()`] instead.
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -1294,8 +1258,6 @@ impl Ipv6Addr {
/// If you need a strict validation fully compliant with the RFC, use /// If you need a strict validation fully compliant with the RFC, use
/// [`Ipv6Addr::is_unicast_link_local_strict()`] instead. /// [`Ipv6Addr::is_unicast_link_local_strict()`] instead.
/// ///
/// [`true`]: ../../std/primitive.bool.html
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -1342,7 +1304,6 @@ impl Ipv6Addr {
/// +----------+-------------------------+----------------------------+ /// +----------+-------------------------+----------------------------+
/// ``` /// ```
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7 /// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7
/// ///
/// # Examples /// # Examples
@ -1376,7 +1337,6 @@ impl Ipv6Addr {
/// ///
/// This property is defined in [IETF RFC 3849]. /// This property is defined in [IETF RFC 3849].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 3849]: https://tools.ietf.org/html/rfc3849 /// [IETF RFC 3849]: https://tools.ietf.org/html/rfc3849
/// ///
/// # Examples /// # Examples
@ -1412,7 +1372,6 @@ impl Ipv6Addr {
/// Global Unicast). /// Global Unicast).
/// ``` /// ```
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7 /// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7
/// ///
/// # Examples /// # Examples
@ -1472,7 +1431,6 @@ impl Ipv6Addr {
/// ///
/// This property is defined by [IETF RFC 4291]. /// This property is defined by [IETF RFC 4291].
/// ///
/// [`true`]: ../../std/primitive.bool.html
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
/// ///
/// # Examples /// # Examples