Lines Matching refs:V6
28 /// let localhost_v6 = IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
44 V6(#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] Ipv6Addr),
233 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)).is_unspecified(), true);
245 IpAddr::V6(ip) => ip.is_unspecified(),
260 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0x1)).is_loopback(), true);
272 IpAddr::V6(ip) => ip.is_loopback(),
289 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1)).is_global(), true);
301 IpAddr::V6(ip) => ip.is_global(),
316 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0)).is_multicast(), true);
328 IpAddr::V6(ip) => ip.is_multicast(),
346 /// IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_documentation(),
360 IpAddr::V6(ip) => ip.is_documentation(),
377 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0x2, 0, 0, 0, 0, 0, 0)).is_benchmarking(), true);
385 IpAddr::V6(ip) => ip.is_benchmarking(),
400 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_ipv4(), false);
416 /// [`IPv6` address]: IpAddr::V6
424 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_ipv6(), true);
434 matches!(self, IpAddr::V6(_))
447 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0x7f00, 0x1)).is_loopback(), false);
448 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0x7f00, 0x1)).to_canonical().is_loopback(), true);
461 IpAddr::V6(v6) => v6.to_canonical(),
1032 /// Copies this address to a new `IpAddr::V6`.
1042 /// IpAddr::V6(addr),
1048 IpAddr::V6(ipv6)
1058 IpAddr::V6(_) => false,
1069 IpAddr::V6(_) => false,
1088 IpAddr::V6(_) => Some(Ordering::Greater),
1099 IpAddr::V6(_) => Some(Ordering::Less),
1794 /// returns self wrapped in an `IpAddr::V6`.
1817 IpAddr::V6(*self)
1846 IpAddr::V6(v6) => self == v6,
1857 IpAddr::V6(v6) => v6 == other,
1876 IpAddr::V6(v6) => v6.partial_cmp(other),
1887 IpAddr::V6(v6) => self.partial_cmp(v6),
2004 /// Creates an `IpAddr::V6` from a sixteen element byte array.
2016 /// IpAddr::V6(Ipv6Addr::new(
2027 IpAddr::V6(Ipv6Addr::from(octets))
2033 /// Creates an `IpAddr::V6` from an eight element 16-bit array.
2045 /// IpAddr::V6(Ipv6Addr::new(
2056 IpAddr::V6(Ipv6Addr::from(segments))