Trait IpRootPrefix

Source
pub trait IpRootPrefix: IpPrefix {
    // Required method
    fn root() -> Self;
}

Required Methods§

Source

fn root() -> Self

Root prefix has a length of 0

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IpRootPrefix for Ipv4Net

Source§

fn root() -> Self

Source§

impl IpRootPrefix for Ipv6Net

Source§

fn root() -> Self

Implementors§