added conversion

This commit is contained in:
Monica Moniot
2023-10-31 11:01:35 -04:00
parent fe237409bb
commit dd8fe5aa6f
+5
View File
@@ -403,6 +403,11 @@ impl From<ShortAddress> for std::net::Ipv6Addr {
std::net::Ipv6Addr::from(*value.as_bytes())
}
}
impl From<&ShortAddress> for std::net::Ipv6Addr {
fn from(value: &ShortAddress) -> Self {
std::net::Ipv6Addr::from(*value.as_bytes())
}
}
impl crate::Address for Address {
const SIZE: usize = 48;