NotZeroable

Trait NotZeroable 

Source
pub trait NotZeroable: Sized {
    // Required method
    fn is_zero(&self) -> bool;
}
Expand description

Defines a trait for types that are invalid when passed as a zero

Required Methods§

Source

fn is_zero(&self) -> bool

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.

Implementors§