Skip to main content

IpStep

Trait IpStep 

Source
pub trait IpStep {
    // Required methods
    fn replace_one(&mut self) -> Self;
    fn replace_zero(&mut self) -> Self;
    fn add_one(&self) -> Self;
    fn sub_one(&self) -> Self;
}

Required Methods§

Source

fn replace_one(&mut self) -> Self

Source

fn replace_zero(&mut self) -> Self

Source

fn add_one(&self) -> Self

Source

fn sub_one(&self) -> Self

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 IpStep for Ipv4Addr

Source§

fn replace_one(&mut self) -> Self

Source§

fn replace_zero(&mut self) -> Self

Source§

fn add_one(&self) -> Self

Source§

fn sub_one(&self) -> Self

Source§

impl IpStep for Ipv6Addr

Source§

fn replace_one(&mut self) -> Self

Source§

fn replace_zero(&mut self) -> Self

Source§

fn add_one(&self) -> Self

Source§

fn sub_one(&self) -> Self

Implementors§