pub trait ToNetwork<N: IpNet> {
// Required method
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".