Skip to main content

IsZero

Trait IsZero 

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

A value that can be zero.

Required Methods§

Source

fn is_zero(&self) -> bool

Whether the value is zero.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§