IpPrefixShortening

Trait IpPrefixShortening 

Source
pub trait IpPrefixShortening {
    // Required method
    fn shorten(&mut self, maxlen: u8);
}
Expand description

Shortening an Ip prefix

Required Methods§

Source

fn shorten(&mut self, maxlen: u8)

Shortens the prefix

Remains unchanged if the specified length is greater than the previous one

Implementations on Foreign Types§

Source§

impl IpPrefixShortening for IpNet

Source§

fn shorten(&mut self, maxlen: u8)

Source§

impl IpPrefixShortening for Ipv4Net

Source§

fn shorten(&mut self, maxlen: u8)

Source§

impl IpPrefixShortening for Ipv6Net

Source§

fn shorten(&mut self, maxlen: u8)

Implementors§