Trait ip::traits::primitive::Length

source ·
pub trait Length: Copy + Clone + Debug + Display + Hash + Ord + Add<Output = Self> + Sub<Output = Self> + Into<usize> + TryFrom<usize> {
    const ZERO: Self;
    const ONE: Self;
}
Expand description

Underlying integer-like type used to represent an IP prefix-length.

Required Associated Constants§

source

const ZERO: Self

Additive identity value.

source

const ONE: Self

Additive unit value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Length for u8

source§

const ZERO: Self = 0u8

source§

const ONE: Self = 1u8

Implementors§