• Home
  • Raw
  • Download

Lines Matching refs:Ipv6Addr

44     V6(#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] Ipv6Addr),
162 pub struct Ipv6Addr { struct
970 pub const fn to_ipv6_compatible(&self) -> Ipv6Addr { in to_ipv6_compatible() argument
972 Ipv6Addr { in to_ipv6_compatible()
1000 pub const fn to_ipv6_mapped(&self) -> Ipv6Addr { in to_ipv6_mapped() argument
1002 Ipv6Addr { in to_ipv6_mapped()
1031 impl From<Ipv6Addr> for IpAddr {
1047 fn from(ipv6: Ipv6Addr) -> IpAddr { in from()
1186 impl Ipv6Addr { implementation
1205 pub const fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16, h: u16) -> Ipv6Addr { in new() argument
1216 Ipv6Addr { in new()
1234 pub const LOCALHOST: Self = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1);
1247 pub const UNSPECIFIED: Self = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0);
1305 u128::from_be_bytes(self.octets()) == u128::from_be_bytes(Ipv6Addr::UNSPECIFIED.octets()) in is_unspecified()
1332 u128::from_be_bytes(self.octets()) == u128::from_be_bytes(Ipv6Addr::LOCALHOST.octets()) in is_loopback()
1841 impl PartialEq<IpAddr> for Ipv6Addr { implementation
1852 impl PartialEq<Ipv6Addr> for IpAddr {
1854 fn eq(&self, other: &Ipv6Addr) -> bool { in eq()
1863 impl PartialOrd for Ipv6Addr { implementation
1865 fn partial_cmp(&self, other: &Ipv6Addr) -> Option<Ordering> { in partial_cmp()
1871 impl PartialOrd<Ipv6Addr> for IpAddr {
1873 fn partial_cmp(&self, other: &Ipv6Addr) -> Option<Ordering> { in partial_cmp()
1882 impl PartialOrd<IpAddr> for Ipv6Addr { implementation
1893 impl Ord for Ipv6Addr { implementation
1895 fn cmp(&self, other: &Ipv6Addr) -> Ordering { in cmp()
1901 impl From<Ipv6Addr> for u128 {
1916 fn from(ip: Ipv6Addr) -> u128 { in from()
1921 impl From<u128> for Ipv6Addr { implementation
1938 fn from(ip: u128) -> Ipv6Addr { in from() argument
1939 Ipv6Addr::from(ip.to_be_bytes()) in from()
1944 impl From<[u8; 16]> for Ipv6Addr { implementation
1967 fn from(octets: [u8; 16]) -> Ipv6Addr { in from() argument
1968 Ipv6Addr { octets }
1973 impl From<[u16; 8]> for Ipv6Addr { implementation
1996 fn from(segments: [u16; 8]) -> Ipv6Addr { in from() argument
1998 Ipv6Addr::new(a, b, c, d, e, f, g, h)
2027 IpAddr::V6(Ipv6Addr::from(octets))
2056 IpAddr::V6(Ipv6Addr::from(segments))