mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-16 08:48:51 +00:00
Remove from_cidr
This commit is contained in:
@ -26,11 +26,6 @@ impl Ipv4Network {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since="0.9.1", note="please use `String::parse()` instead")]
|
|
||||||
fn from_cidr(cidr: &str) -> Result<Ipv4Network, IpNetworkError> {
|
|
||||||
cidr.parse()
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns an iterator over `Ipv4Network`. Each call to `next` will return the next
|
/// Returns an iterator over `Ipv4Network`. Each call to `next` will return the next
|
||||||
/// `Ipv4Addr` in the given network. `None` will be returned when there are no more
|
/// `Ipv4Addr` in the given network. `None` will be returned when there are no more
|
||||||
/// addresses.
|
/// addresses.
|
||||||
|
@ -28,11 +28,6 @@ impl Ipv6Network {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since="0.9.1", note="please use `String::parse()` instead")]
|
|
||||||
fn from_cidr(cidr: &str) -> Result<Ipv6Network, IpNetworkError> {
|
|
||||||
cidr.parse()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn ip(&self) -> Ipv6Addr {
|
pub fn ip(&self) -> Ipv6Addr {
|
||||||
self.addr
|
self.addr
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user