[][src]Trait ipstuff::IpBitwiseExt

pub trait IpBitwiseExt<Rhs = Self> {
    type Output;
    fn bitand(self, rhs: Rhs) -> Self::Output;
fn bitor(self, rhs: Rhs) -> Self::Output;
fn bitxor(self, rhs: Rhs) -> Self::Output; }

An extension trait providing bitwise binary operations for Ipv4Addr and Ipv6Addr types.

Associated Types

type Output

The output type of this operation.

Loading content...

Required methods

fn bitand(self, rhs: Rhs) -> Self::Output

Bitwise And operation.

fn bitor(self, rhs: Rhs) -> Self::Output

Bitwise Or operation.

fn bitxor(self, rhs: Rhs) -> Self::Output

Bitwise Xor operation.

Loading content...

Implementations on Foreign Types

impl IpBitwiseExt<[u8; 4]> for Ipv4Addr[src]

type Output = Self

impl IpBitwiseExt<Ipv4Addr> for Ipv4Addr[src]

type Output = Self

impl IpBitwiseExt<Ipv4Mask> for Ipv4Addr[src]

type Output = Self

impl IpBitwiseExt<u32> for Ipv4Addr[src]

type Output = Self

Loading content...

Implementors

Loading content...