Lines Matching refs:is_multicast
307 /// See the documentation for [`Ipv4Addr::is_multicast()`] and
308 /// [`Ipv6Addr::is_multicast()`] for more details.
315 /// assert_eq!(IpAddr::V4(Ipv4Addr::new(224, 254, 0, 0)).is_multicast(), true);
316 /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0)).is_multicast(), true);
325 pub const fn is_multicast(&self) -> bool {
327 IpAddr::V4(ip) => ip.is_multicast(),
328 IpAddr::V6(ip) => ip.is_multicast(),
868 /// assert_eq!(Ipv4Addr::new(224, 254, 0, 0).is_multicast(), true);
869 /// assert_eq!(Ipv4Addr::new(236, 168, 10, 65).is_multicast(), true);
870 /// assert_eq!(Ipv4Addr::new(172, 16, 10, 65).is_multicast(), false);
879 pub const fn is_multicast(&self) -> bool {
1465 /// [multicast address]: Ipv6Addr::is_multicast
1490 !self.is_multicast()
1669 if self.is_multicast() {
1696 /// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).is_multicast(), true);
1697 /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_multicast(), false);
1706 pub const fn is_multicast(&self) -> bool {