Trait iprange::ToNetwork[][src]

pub trait ToNetwork<N: IpNet> {
    fn to_network(&self) -> N;
}
Expand description

Anything that can be converted to IpNet.

Due to limitation of Rust’s type system, this trait is only implemented for some concrete types.

Required methods

fn to_network(&self) -> N[src]

Implementations on Foreign Types

impl ToNetwork<Ipv4Net> for Ipv4Net[src]

impl ToNetwork<Ipv4Net> for Ipv4Addr[src]

impl ToNetwork<Ipv4Net> for u32[src]

impl ToNetwork<Ipv4Net> for [u8; 4][src]

impl ToNetwork<Ipv6Net> for Ipv6Net[src]

impl ToNetwork<Ipv6Net> for Ipv6Addr[src]

impl ToNetwork<Ipv6Net> for u128[src]

impl ToNetwork<Ipv6Net> for [u8; 16][src]

impl ToNetwork<Ipv6Net> for [u16; 8][src]

Implementors