typst_utils

Trait NonZeroExt

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

An extra constant for NonZeroUsize.

Required Associated Constants§

source

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§

source§

impl NonZeroExt for NonZeroUsize

source§

const ONE: Self = _

Implementors§