Trait NonZeroExt

pub trait NonZeroExt {
    const ONE: Self;
}
Expand description

An extra constant for NonZeroUsize.

Required Associated Constants§

const ONE: Self

The number 1.

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§

§

impl NonZeroExt for NonZero<usize>

Implementors§