Skip to main content

NonZero

Trait NonZero 

Source
pub trait NonZero: Sealed { }
Expand description

A marker trait to designate that a type is not zero. All number types in this crate implement NonZero except B0, U0, and Z0.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl NonZero for B1

Source§

impl<U: Unsigned + NonZero> NonZero for NInt<U>

Source§

impl<U: Unsigned + NonZero> NonZero for PInt<U>

Source§

impl<U: Unsigned, B: Bit> NonZero for UInt<U, B>