We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b273789 commit f21788dCopy full SHA for f21788d
uefi-raw/src/lib.rs
@@ -194,6 +194,19 @@ impl From<IpAddr> for IpAddress {
194
}
195
196
197
+impl From<&IpAddr> for IpAddress {
198
+ fn from(t: &IpAddr) -> Self {
199
+ match t {
200
+ IpAddr::V4(ip) => Self {
201
+ v4: Ipv4Addr::from(*ip),
202
+ },
203
+ IpAddr::V6(ip) => Self {
204
+ v6: Ipv6Addr::from(*ip),
205
206
+ }
207
208
+}
209
+
210
impl From<[u8; 16]> for IpAddress {
211
fn from(value: [u8; 16]) -> Self {
212
Self {
0 commit comments