Trait core::nonzero::Zeroable[][src]

pub unsafe trait Zeroable {
    fn is_zero(&self) -> bool;
}
Deprecated since 1.26.0

: use std::ptr::NonNull or std::num::NonZero* instead

🔬 This is a nightly-only experimental API. (nonzero #49137)

deprecated

Unsafe trait to indicate what types are usable with the NonZero struct

Required Methods

Deprecated since 1.26.0

: use std::ptr::NonNull or std::num::NonZero* instead

🔬 This is a nightly-only experimental API. (nonzero #49137)

deprecated

Whether this value is zero

Implementors