• Home
  • Raw
  • Download

Lines Matching refs:Ipv4Addr

41     V4(#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] Ipv4Addr),
80 pub struct Ipv4Addr { struct
466 impl Ipv4Addr { impl
485 pub const fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr { in new() argument
486 Ipv4Addr { in new()
502 pub const LOCALHOST: Self = Ipv4Addr::new(127, 0, 0, 1);
518 pub const UNSPECIFIED: Self = Ipv4Addr::new(0, 0, 0, 0);
531 pub const BROADCAST: Self = Ipv4Addr::new(255, 255, 255, 255);
1009 impl From<Ipv4Addr> for IpAddr {
1025 fn from(ipv4: Ipv4Addr) -> IpAddr { in from()
1053 impl PartialEq<Ipv4Addr> for IpAddr {
1055 fn eq(&self, other: &Ipv4Addr) -> bool { in eq()
1064 impl PartialEq<IpAddr> for Ipv4Addr { implementation
1075 impl PartialOrd for Ipv4Addr { implementation
1077 fn partial_cmp(&self, other: &Ipv4Addr) -> Option<Ordering> { in partial_cmp()
1083 impl PartialOrd<Ipv4Addr> for IpAddr {
1085 fn partial_cmp(&self, other: &Ipv4Addr) -> Option<Ordering> { in partial_cmp()
1094 impl PartialOrd<IpAddr> for Ipv4Addr { implementation
1105 impl Ord for Ipv4Addr { implementation
1107 fn cmp(&self, other: &Ipv4Addr) -> Ordering { in cmp()
1113 impl From<Ipv4Addr> for u32 {
1125 fn from(ip: Ipv4Addr) -> u32 { in from()
1131 impl From<u32> for Ipv4Addr { implementation
1143 fn from(ip: u32) -> Ipv4Addr { in from() argument
1144 Ipv4Addr { in from()
1151 impl From<[u8; 4]> for Ipv4Addr { implementation
1163 fn from(octets: [u8; 4]) -> Ipv4Addr { in from() argument
1164 Ipv4Addr { octets }
1182 IpAddr::V4(Ipv4Addr::from(octets))
1738 pub const fn to_ipv4_mapped(&self) -> Option<Ipv4Addr> { in to_ipv4_mapped() argument
1741 Some(Ipv4Addr::new(a, b, c, d)) in to_ipv4_mapped()
1783 pub const fn to_ipv4(&self) -> Option<Ipv4Addr> { in to_ipv4() argument
1787 Some(Ipv4Addr::new(a, b, c, d)) in to_ipv4()